agefans Enhance

增强播放功能,实现自动换集、无缝换集、画中画、历史记录、断点续播、弹幕等功能。适配agefans、NT动漫、bimiacg、mutefun、次元城、稀饭动漫

  1. // ==UserScript==
  2. // @name agefans Enhance
  3. // @namespace https://github.com/IronKinoko/agefans-enhance
  4. // @icon https://www.age.tv/favicon.ico
  5. // @version 1.49.0
  6. // @description 增强播放功能,实现自动换集、无缝换集、画中画、历史记录、断点续播、弹幕等功能。适配agefans、NT动漫、bimiacg、mutefun、次元城、稀饭动漫
  7. // @author IronKinoko
  8. // @include https://www.age.tv/*
  9. // @include https://www.agefans.*
  10. // @include https://www.agemys.*
  11. // @include https://www.agedm.*
  12. // @include https://m.agedm.*
  13. // @include http*://www.ntdm*.com/*
  14. // @include http*://www.bimiacg*.net*
  15. // @include https://pro.ascepan.top/*
  16. // @include https://danmu.yhdmjx.com/*
  17. // @include https://*.sp-flv.com*
  18. // @include https://*43.240.74.134*
  19. // @include https://*43.240.156.118*
  20. // @include https://www.mutedm.com/*
  21. // @include https://www.mutean.com/*
  22. // @include https://www.mute01.com/*
  23. // @include https://www.cycanime.com/*
  24. // @include https://www.cyc-anime.net/*
  25. // @include https://www.cycani.org/*
  26. // @include https://www.ciyuancheng.net/*
  27. // @include https://player.cycanime.com/*
  28. // @include https://dm.xifanacg.com/*
  29. // @include https://player.moedot.net/*
  30. // @include https://www.anime1.me/*
  31. // @include https://anime1.me/*
  32. // @include http://127.0.0.1:5500/public/index.html*
  33. // @include https://ironkinoko.github.io/agefans-enhance/*
  34. // @run-at document-end
  35. // @require https://unpkg.com/jquery@3.6.0/dist/jquery.min.js
  36. // @require https://unpkg.com/plyr@3.6.4/dist/plyr.min.js
  37. // @require https://unpkg.com/hls.js@1.0.9/dist/hls.min.js
  38. // @require https://unpkg.com/@ironkinoko/danmaku@1.4.3/dist/danmaku.umd.js
  39. // @grant GM_getValue
  40. // @grant GM_setValue
  41. // @grant GM_xmlhttpRequest
  42. // @connect dandanplay.net
  43. // @license MIT
  44. // ==/UserScript==
  45.  
  46. /**
  47. * 权限声明:
  48. * 1. GM_xmlhttpRequest
  49. * 脚本会请求有限的网络权限。仅用于访问弹幕查询功能需要链接到的 dandanplay.net 第三方域名
  50. * 你可以从 脚本编辑/设置/XHR安全 中管理网络权限
  51. *
  52. * 2. GM_getValue, GM_setValue
  53. * 脚本会使用本地存储功能,用于在不同页面间保存“播放器配置”与“agefans 历史浏览记录”。
  54. *
  55. * 3. @include
  56. * 脚本还匹配了 agefans 以外的一些链接,用于提供相同视频资源搜索功能
  57. */
  58.  
  59. (function (Hls, Plyr, Danmaku) {
  60. 'use strict';
  61.  
  62. /** @type {HTMLElement[]} */
  63. var containers = [];
  64. /** @type {{prepend:HTMLStyleElement,append:HTMLStyleElement}[]} */
  65.  
  66. var styleTags = [];
  67. /**
  68. * @param {string} css
  69. * @param {object} options
  70. * @param {boolean} [options.prepend]
  71. * @param {boolean} [options.singleTag]
  72. * @param {string} [options.container]
  73. * @param {Record<string,string>} [options.attributes]
  74. * @returns {void}
  75. */
  76.  
  77. function injectCss (css, options) {
  78. if (!css || typeof document === "undefined") return;
  79. var position = options.prepend === true ? "prepend" : "append";
  80. var singleTag = options.singleTag === true;
  81. var container = typeof options.container === "string" ? document.querySelector(options.container) : document.getElementsByTagName("head")[0];
  82.  
  83. function createStyleTag() {
  84. var styleTag = document.createElement("style");
  85. styleTag.setAttribute("type", "text/css");
  86.  
  87. if (options.attributes) {
  88. var k = Object.keys(options.attributes);
  89.  
  90. for (var i = 0; i < k.length; i++) {
  91. styleTag.setAttribute(k[i], options.attributes[k[i]]);
  92. }
  93. }
  94.  
  95. var pos = position === "prepend" ? "afterbegin" : "beforeend";
  96. container.insertAdjacentElement(pos, styleTag);
  97. return styleTag;
  98. }
  99. /** @type {HTMLStyleElement} */
  100.  
  101.  
  102. var styleTag;
  103.  
  104. if (singleTag) {
  105. var id = containers.indexOf(container);
  106.  
  107. if (id === -1) {
  108. id = containers.push(container) - 1;
  109. styleTags[id] = {};
  110. }
  111.  
  112. if (styleTags[id] && styleTags[id][position]) {
  113. styleTag = styleTags[id][position];
  114. } else {
  115. styleTag = styleTags[id][position] = createStyleTag();
  116. }
  117. } else {
  118. styleTag = createStyleTag();
  119. } // strip potential UTF-8 BOM if css was read from a file
  120.  
  121.  
  122. if (css.charCodeAt(0) === 0xfeff) css = css.substring(1);
  123.  
  124. if (styleTag.styleSheet) {
  125. styleTag.styleSheet.cssText += css;
  126. } else {
  127. styleTag.appendChild(document.createTextNode(css));
  128. }
  129. }
  130.  
  131. var css$i = "@keyframes plyr-progress{to{background-position:25px 0;background-position:var(--plyr-progress-loading-size,25px) 0}}@keyframes plyr-popup{0%{opacity:.5;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes plyr-fade-in{from{opacity:0}to{opacity:1}}.plyr{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;align-items:center;direction:ltr;display:flex;flex-direction:column;font-family:inherit;font-family:var(--plyr-font-family,inherit);font-variant-numeric:tabular-nums;font-weight:400;font-weight:var(--plyr-font-weight-regular,400);line-height:1.7;line-height:var(--plyr-line-height,1.7);max-width:100%;min-width:200px;position:relative;text-shadow:none;transition:box-shadow .3s ease;z-index:0}.plyr audio,.plyr iframe,.plyr video{display:block;height:100%;width:100%}.plyr button{font:inherit;line-height:inherit;width:auto}.plyr:focus{outline:0}.plyr--full-ui{box-sizing:border-box}.plyr--full-ui *,.plyr--full-ui ::after,.plyr--full-ui ::before{box-sizing:inherit}.plyr--full-ui a,.plyr--full-ui button,.plyr--full-ui input,.plyr--full-ui label{touch-action:manipulation}.plyr__badge{background:#4a5464;background:var(--plyr-badge-background,#4a5464);border-radius:2px;border-radius:var(--plyr-badge-border-radius,2px);color:#fff;color:var(--plyr-badge-text-color,#fff);font-size:9px;font-size:var(--plyr-font-size-badge,9px);line-height:1;padding:3px 4px}.plyr--full-ui ::-webkit-media-text-track-container{display:none}.plyr__captions{animation:plyr-fade-in .3s ease;bottom:0;display:none;font-size:13px;font-size:var(--plyr-font-size-small,13px);left:0;padding:10px;padding:var(--plyr-control-spacing,10px);position:absolute;text-align:center;transition:transform .4s ease-in-out;width:100%}.plyr__captions span:empty{display:none}@media (min-width:480px){.plyr__captions{font-size:15px;font-size:var(--plyr-font-size-base,15px);padding:calc(10px * 2);padding:calc(var(--plyr-control-spacing,10px) * 2)}}@media (min-width:768px){.plyr__captions{font-size:18px;font-size:var(--plyr-font-size-large,18px)}}.plyr--captions-active .plyr__captions{display:block}.plyr:not(.plyr--hide-controls) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(calc(10px * -4));transform:translateY(calc(var(--plyr-control-spacing,10px) * -4))}.plyr__caption{background:rgba(0,0,0,.8);background:var(--plyr-captions-background,rgba(0,0,0,.8));border-radius:2px;-webkit-box-decoration-break:clone;box-decoration-break:clone;color:#fff;color:var(--plyr-captions-text-color,#fff);line-height:185%;padding:.2em .5em;white-space:pre-wrap}.plyr__caption div{display:inline}.plyr__control{background:0 0;border:0;border-radius:3px;border-radius:var(--plyr-control-radius,3px);color:inherit;cursor:pointer;flex-shrink:0;overflow:visible;padding:calc(10px * .7);padding:calc(var(--plyr-control-spacing,10px) * .7);position:relative;transition:all .3s ease}.plyr__control svg{display:block;fill:currentColor;height:18px;height:var(--plyr-control-icon-size,18px);pointer-events:none;width:18px;width:var(--plyr-control-icon-size,18px)}.plyr__control:focus{outline:0}.plyr__control.plyr__tab-focus{outline-color:#00b3ff;outline-color:var(--plyr-tab-focus-color,var(--plyr-color-main,var(--plyr-color-main,#00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}a.plyr__control{text-decoration:none}a.plyr__control::after,a.plyr__control::before{display:none}.plyr__control.plyr__control--pressed .icon--not-pressed,.plyr__control.plyr__control--pressed .label--not-pressed,.plyr__control:not(.plyr__control--pressed) .icon--pressed,.plyr__control:not(.plyr__control--pressed) .label--pressed{display:none}.plyr--full-ui ::-webkit-media-controls{display:none}.plyr__controls{align-items:center;display:flex;justify-content:flex-end;text-align:center}.plyr__controls .plyr__progress__container{flex:1;min-width:0}.plyr__controls .plyr__controls__item{margin-left:calc(10px / 4);margin-left:calc(var(--plyr-control-spacing,10px)/ 4)}.plyr__controls .plyr__controls__item:first-child{margin-left:0;margin-right:auto}.plyr__controls .plyr__controls__item.plyr__progress__container{padding-left:calc(10px / 4);padding-left:calc(var(--plyr-control-spacing,10px)/ 4)}.plyr__controls .plyr__controls__item.plyr__time{padding:0 calc(10px / 2);padding:0 calc(var(--plyr-control-spacing,10px)/ 2)}.plyr__controls .plyr__controls__item.plyr__progress__container:first-child,.plyr__controls .plyr__controls__item.plyr__time+.plyr__time,.plyr__controls .plyr__controls__item.plyr__time:first-child{padding-left:0}.plyr__controls:empty{display:none}.plyr [data-plyr=airplay],.plyr [data-plyr=captions],.plyr [data-plyr=fullscreen],.plyr [data-plyr=pip]{display:none}.plyr--airplay-supported [data-plyr=airplay],.plyr--captions-enabled [data-plyr=captions],.plyr--fullscreen-enabled [data-plyr=fullscreen],.plyr--pip-supported [data-plyr=pip]{display:inline-block}.plyr__menu{display:flex;position:relative}.plyr__menu .plyr__control svg{transition:transform .3s ease}.plyr__menu .plyr__control[aria-expanded=true] svg{transform:rotate(90deg)}.plyr__menu .plyr__control[aria-expanded=true] .plyr__tooltip{display:none}.plyr__menu__container{animation:plyr-popup .2s ease;background:rgba(255,255,255,.9);background:var(--plyr-menu-background,rgba(255,255,255,.9));border-radius:4px;bottom:100%;box-shadow:0 1px 2px rgba(0,0,0,.15);box-shadow:var(--plyr-menu-shadow,0 1px 2px rgba(0,0,0,.15));color:#4a5464;color:var(--plyr-menu-color,#4a5464);font-size:15px;font-size:var(--plyr-font-size-base,15px);margin-bottom:10px;position:absolute;right:-3px;text-align:left;white-space:nowrap;z-index:3}.plyr__menu__container>div{overflow:hidden;transition:height .35s cubic-bezier(.4,0,.2,1),width .35s cubic-bezier(.4,0,.2,1)}.plyr__menu__container::after{border:4px solid transparent;border:var(--plyr-menu-arrow-size,4px) solid transparent;border-top-color:rgba(255,255,255,.9);border-top-color:var(--plyr-menu-background,rgba(255,255,255,.9));content:'';height:0;position:absolute;right:calc(((18px / 2) + calc(10px * .7)) - (4px / 2));right:calc(((var(--plyr-control-icon-size,18px)/ 2) + calc(var(--plyr-control-spacing,10px) * .7)) - (var(--plyr-menu-arrow-size,4px)/ 2));top:100%;width:0}.plyr__menu__container [role=menu]{padding:calc(10px * .7);padding:calc(var(--plyr-control-spacing,10px) * .7)}.plyr__menu__container [role=menuitem],.plyr__menu__container [role=menuitemradio]{margin-top:2px}.plyr__menu__container [role=menuitem]:first-child,.plyr__menu__container [role=menuitemradio]:first-child{margin-top:0}.plyr__menu__container .plyr__control{align-items:center;color:#4a5464;color:var(--plyr-menu-color,#4a5464);display:flex;font-size:13px;font-size:var(--plyr-font-size-menu,var(--plyr-font-size-small,13px));padding-bottom:calc(calc(10px * .7)/ 1.5);padding-bottom:calc(calc(var(--plyr-control-spacing,10px) * .7)/ 1.5);padding-left:calc(calc(10px * .7) * 1.5);padding-left:calc(calc(var(--plyr-control-spacing,10px) * .7) * 1.5);padding-right:calc(calc(10px * .7) * 1.5);padding-right:calc(calc(var(--plyr-control-spacing,10px) * .7) * 1.5);padding-top:calc(calc(10px * .7)/ 1.5);padding-top:calc(calc(var(--plyr-control-spacing,10px) * .7)/ 1.5);-webkit-user-select:none;-ms-user-select:none;user-select:none;width:100%}.plyr__menu__container .plyr__control>span{align-items:inherit;display:flex;width:100%}.plyr__menu__container .plyr__control::after{border:4px solid transparent;border:var(--plyr-menu-item-arrow-size,4px) solid transparent;content:'';position:absolute;top:50%;transform:translateY(-50%)}.plyr__menu__container .plyr__control--forward{padding-right:calc(calc(10px * .7) * 4);padding-right:calc(calc(var(--plyr-control-spacing,10px) * .7) * 4)}.plyr__menu__container .plyr__control--forward::after{border-left-color:#728197;border-left-color:var(--plyr-menu-arrow-color,#728197);right:calc((calc(10px * .7) * 1.5) - 4px);right:calc((calc(var(--plyr-control-spacing,10px) * .7) * 1.5) - var(--plyr-menu-item-arrow-size,4px))}.plyr__menu__container .plyr__control--forward.plyr__tab-focus::after,.plyr__menu__container .plyr__control--forward:hover::after{border-left-color:currentColor}.plyr__menu__container .plyr__control--back{font-weight:400;font-weight:var(--plyr-font-weight-regular,400);margin:calc(10px * .7);margin:calc(var(--plyr-control-spacing,10px) * .7);margin-bottom:calc(calc(10px * .7)/ 2);margin-bottom:calc(calc(var(--plyr-control-spacing,10px) * .7)/ 2);padding-left:calc(calc(10px * .7) * 4);padding-left:calc(calc(var(--plyr-control-spacing,10px) * .7) * 4);position:relative;width:calc(100% - (calc(10px * .7) * 2));width:calc(100% - (calc(var(--plyr-control-spacing,10px) * .7) * 2))}.plyr__menu__container .plyr__control--back::after{border-right-color:#728197;border-right-color:var(--plyr-menu-arrow-color,#728197);left:calc((calc(10px * .7) * 1.5) - 4px);left:calc((calc(var(--plyr-control-spacing,10px) * .7) * 1.5) - var(--plyr-menu-item-arrow-size,4px))}.plyr__menu__container .plyr__control--back::before{background:#dcdfe5;background:var(--plyr-menu-back-border-color,#dcdfe5);box-shadow:0 1px 0 #fff;box-shadow:0 1px 0 var(--plyr-menu-back-border-shadow-color,#fff);content:'';height:1px;left:0;margin-top:calc(calc(10px * .7)/ 2);margin-top:calc(calc(var(--plyr-control-spacing,10px) * .7)/ 2);overflow:hidden;position:absolute;right:0;top:100%}.plyr__menu__container .plyr__control--back.plyr__tab-focus::after,.plyr__menu__container .plyr__control--back:hover::after{border-right-color:currentColor}.plyr__menu__container .plyr__control[role=menuitemradio]{padding-left:calc(10px * .7);padding-left:calc(var(--plyr-control-spacing,10px) * .7)}.plyr__menu__container .plyr__control[role=menuitemradio]::after,.plyr__menu__container .plyr__control[role=menuitemradio]::before{border-radius:100%}.plyr__menu__container .plyr__control[role=menuitemradio]::before{background:rgba(0,0,0,.1);content:'';display:block;flex-shrink:0;height:16px;margin-right:10px;margin-right:var(--plyr-control-spacing,10px);transition:all .3s ease;width:16px}.plyr__menu__container .plyr__control[role=menuitemradio]::after{background:#fff;border:0;height:6px;left:12px;opacity:0;top:50%;transform:translateY(-50%) scale(0);transition:transform .3s ease,opacity .3s ease;width:6px}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]::before{background:#00b3ff;background:var(--plyr-control-toggle-checked-background,var(--plyr-color-main,var(--plyr-color-main,#00b3ff)))}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]::after{opacity:1;transform:translateY(-50%) scale(1)}.plyr__menu__container .plyr__control[role=menuitemradio].plyr__tab-focus::before,.plyr__menu__container .plyr__control[role=menuitemradio]:hover::before{background:rgba(35,40,47,.1)}.plyr__menu__container .plyr__menu__value{align-items:center;display:flex;margin-left:auto;margin-right:calc((calc(10px * .7) - 2) * -1);margin-right:calc((calc(var(--plyr-control-spacing,10px) * .7) - 2) * -1);overflow:hidden;padding-left:calc(calc(10px * .7) * 3.5);padding-left:calc(calc(var(--plyr-control-spacing,10px) * .7) * 3.5);pointer-events:none}.plyr--full-ui input[type=range]{-webkit-appearance:none;background:0 0;border:0;border-radius:calc(13px * 2);border-radius:calc(var(--plyr-range-thumb-height,13px) * 2);color:#00b3ff;color:var(--plyr-range-fill-background,var(--plyr-color-main,var(--plyr-color-main,#00b3ff)));display:block;height:calc((3px * 2) + 13px);height:calc((var(--plyr-range-thumb-active-shadow-width,3px) * 2) + var(--plyr-range-thumb-height,13px));margin:0;min-width:0;padding:0;transition:box-shadow .3s ease;width:100%}.plyr--full-ui input[type=range]::-webkit-slider-runnable-track{background:0 0;border:0;border-radius:calc(5px / 2);border-radius:calc(var(--plyr-range-track-height,5px)/ 2);height:5px;height:var(--plyr-range-track-height,5px);-webkit-transition:box-shadow .3s ease;transition:box-shadow .3s ease;-webkit-user-select:none;user-select:none;background-image:linear-gradient(to right,currentColor 0,transparent 0);background-image:linear-gradient(to right,currentColor var(--value,0),transparent var(--value,0))}.plyr--full-ui input[type=range]::-webkit-slider-thumb{background:#fff;background:var(--plyr-range-thumb-background,#fff);border:0;border-radius:100%;box-shadow:0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2));height:13px;height:var(--plyr-range-thumb-height,13px);position:relative;-webkit-transition:all .2s ease;transition:all .2s ease;width:13px;width:var(--plyr-range-thumb-height,13px);-webkit-appearance:none;margin-top:calc(((13px - 5px)/ 2) * -1);margin-top:calc(((var(--plyr-range-thumb-height,13px) - var(--plyr-range-track-height,5px))/ 2) * -1)}.plyr--full-ui input[type=range]::-moz-range-track{background:0 0;border:0;border-radius:calc(5px / 2);border-radius:calc(var(--plyr-range-track-height,5px)/ 2);height:5px;height:var(--plyr-range-track-height,5px);-moz-transition:box-shadow .3s ease;transition:box-shadow .3s ease;user-select:none}.plyr--full-ui input[type=range]::-moz-range-thumb{background:#fff;background:var(--plyr-range-thumb-background,#fff);border:0;border-radius:100%;box-shadow:0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2));height:13px;height:var(--plyr-range-thumb-height,13px);position:relative;-moz-transition:all .2s ease;transition:all .2s ease;width:13px;width:var(--plyr-range-thumb-height,13px)}.plyr--full-ui input[type=range]::-moz-range-progress{background:currentColor;border-radius:calc(5px / 2);border-radius:calc(var(--plyr-range-track-height,5px)/ 2);height:5px;height:var(--plyr-range-track-height,5px)}.plyr--full-ui input[type=range]::-ms-track{background:0 0;border:0;border-radius:calc(5px / 2);border-radius:calc(var(--plyr-range-track-height,5px)/ 2);height:5px;height:var(--plyr-range-track-height,5px);-ms-transition:box-shadow .3s ease;transition:box-shadow .3s ease;-ms-user-select:none;user-select:none;color:transparent}.plyr--full-ui input[type=range]::-ms-fill-upper{background:0 0;border:0;border-radius:calc(5px / 2);border-radius:calc(var(--plyr-range-track-height,5px)/ 2);height:5px;height:var(--plyr-range-track-height,5px);-ms-transition:box-shadow .3s ease;transition:box-shadow .3s ease;-ms-user-select:none;user-select:none}.plyr--full-ui input[type=range]::-ms-fill-lower{background:0 0;border:0;border-radius:calc(5px / 2);border-radius:calc(var(--plyr-range-track-height,5px)/ 2);height:5px;height:var(--plyr-range-track-height,5px);-ms-transition:box-shadow .3s ease;transition:box-shadow .3s ease;-ms-user-select:none;user-select:none;background:currentColor}.plyr--full-ui input[type=range]::-ms-thumb{background:#fff;background:var(--plyr-range-thumb-background,#fff);border:0;border-radius:100%;box-shadow:0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2));height:13px;height:var(--plyr-range-thumb-height,13px);position:relative;-ms-transition:all .2s ease;transition:all .2s ease;width:13px;width:var(--plyr-range-thumb-height,13px);margin-top:0}.plyr--full-ui input[type=range]::-ms-tooltip{display:none}.plyr--full-ui input[type=range]:focus{outline:0}.plyr--full-ui input[type=range]::-moz-focus-outer{border:0}.plyr--full-ui input[type=range].plyr__tab-focus::-webkit-slider-runnable-track{outline-color:#00b3ff;outline-color:var(--plyr-tab-focus-color,var(--plyr-color-main,var(--plyr-color-main,#00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr--full-ui input[type=range].plyr__tab-focus::-moz-range-track{outline-color:#00b3ff;outline-color:var(--plyr-tab-focus-color,var(--plyr-color-main,var(--plyr-color-main,#00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr--full-ui input[type=range].plyr__tab-focus::-ms-track{outline-color:#00b3ff;outline-color:var(--plyr-tab-focus-color,var(--plyr-color-main,var(--plyr-color-main,#00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr__poster{background-color:#000;background-color:var(--plyr-video-background,var(--plyr-video-background,#000));background-position:50% 50%;background-repeat:no-repeat;background-size:contain;height:100%;left:0;opacity:0;position:absolute;top:0;transition:opacity .2s ease;width:100%;z-index:1}.plyr--stopped.plyr__poster-enabled .plyr__poster{opacity:1}.plyr__time{font-size:13px;font-size:var(--plyr-font-size-time,var(--plyr-font-size-small,13px))}.plyr__time+.plyr__time::before{content:'\\2044';margin-right:10px;margin-right:var(--plyr-control-spacing,10px)}@media (max-width:767px){.plyr__time+.plyr__time{display:none}}.plyr__tooltip{background:rgba(255,255,255,.9);background:var(--plyr-tooltip-background,rgba(255,255,255,.9));border-radius:3px;border-radius:var(--plyr-tooltip-radius,3px);bottom:100%;box-shadow:0 1px 2px rgba(0,0,0,.15);box-shadow:var(--plyr-tooltip-shadow,0 1px 2px rgba(0,0,0,.15));color:#4a5464;color:var(--plyr-tooltip-color,#4a5464);font-size:13px;font-size:var(--plyr-font-size-small,13px);font-weight:400;font-weight:var(--plyr-font-weight-regular,400);left:50%;line-height:1.3;margin-bottom:calc(calc(10px / 2) * 2);margin-bottom:calc(calc(var(--plyr-control-spacing,10px)/ 2) * 2);opacity:0;padding:calc(10px / 2) calc(calc(10px / 2) * 1.5);padding:calc(var(--plyr-control-spacing,10px)/ 2) calc(calc(var(--plyr-control-spacing,10px)/ 2) * 1.5);pointer-events:none;position:absolute;transform:translate(-50%,10px) scale(.8);transform-origin:50% 100%;transition:transform .2s .1s ease,opacity .2s .1s ease;white-space:nowrap;z-index:2}.plyr__tooltip::before{border-left:4px solid transparent;border-left:var(--plyr-tooltip-arrow-size,4px) solid transparent;border-right:4px solid transparent;border-right:var(--plyr-tooltip-arrow-size,4px) solid transparent;border-top:4px solid rgba(255,255,255,.9);border-top:var(--plyr-tooltip-arrow-size,4px) solid var(--plyr-tooltip-background,rgba(255,255,255,.9));bottom:calc(4px * -1);bottom:calc(var(--plyr-tooltip-arrow-size,4px) * -1);content:'';height:0;left:50%;position:absolute;transform:translateX(-50%);width:0;z-index:2}.plyr .plyr__control.plyr__tab-focus .plyr__tooltip,.plyr .plyr__control:hover .plyr__tooltip,.plyr__tooltip--visible{opacity:1;transform:translate(-50%,0) scale(1)}.plyr .plyr__control:hover .plyr__tooltip{z-index:3}.plyr__controls>.plyr__control:first-child .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip{left:0;transform:translate(0,10px) scale(.8);transform-origin:0 100%}.plyr__controls>.plyr__control:first-child .plyr__tooltip::before,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip::before{left:calc((18px / 2) + calc(10px * .7));left:calc((var(--plyr-control-icon-size,18px)/ 2) + calc(var(--plyr-control-spacing,10px) * .7))}.plyr__controls>.plyr__control:last-child .plyr__tooltip{left:auto;right:0;transform:translate(0,10px) scale(.8);transform-origin:100% 100%}.plyr__controls>.plyr__control:last-child .plyr__tooltip::before{left:auto;right:calc((18px / 2) + calc(10px * .7));right:calc((var(--plyr-control-icon-size,18px)/ 2) + calc(var(--plyr-control-spacing,10px) * .7));transform:translateX(50%)}.plyr__controls>.plyr__control:first-child .plyr__tooltip--visible,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip--visible,.plyr__controls>.plyr__control:first-child+.plyr__control.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control:hover .plyr__tooltip,.plyr__controls>.plyr__control:first-child.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:first-child:hover .plyr__tooltip,.plyr__controls>.plyr__control:last-child .plyr__tooltip--visible,.plyr__controls>.plyr__control:last-child.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:last-child:hover .plyr__tooltip{transform:translate(0,0) scale(1)}.plyr__progress{left:calc(13px * .5);left:calc(var(--plyr-range-thumb-height,13px) * .5);margin-right:13px;margin-right:var(--plyr-range-thumb-height,13px);position:relative}.plyr__progress input[type=range],.plyr__progress__buffer{margin-left:calc(13px * -.5);margin-left:calc(var(--plyr-range-thumb-height,13px) * -.5);margin-right:calc(13px * -.5);margin-right:calc(var(--plyr-range-thumb-height,13px) * -.5);width:calc(100% + 13px);width:calc(100% + var(--plyr-range-thumb-height,13px))}.plyr__progress input[type=range]{position:relative;z-index:2}.plyr__progress .plyr__tooltip{font-size:13px;font-size:var(--plyr-font-size-time,var(--plyr-font-size-small,13px));left:0}.plyr__progress__buffer{-webkit-appearance:none;background:0 0;border:0;border-radius:100px;height:5px;height:var(--plyr-range-track-height,5px);left:0;margin-top:calc((5px / 2) * -1);margin-top:calc((var(--plyr-range-track-height,5px)/ 2) * -1);padding:0;position:absolute;top:50%}.plyr__progress__buffer::-webkit-progress-bar{background:0 0}.plyr__progress__buffer::-webkit-progress-value{background:currentColor;border-radius:100px;min-width:5px;min-width:var(--plyr-range-track-height,5px);-webkit-transition:width .2s ease;transition:width .2s ease}.plyr__progress__buffer::-moz-progress-bar{background:currentColor;border-radius:100px;min-width:5px;min-width:var(--plyr-range-track-height,5px);-moz-transition:width .2s ease;transition:width .2s ease}.plyr__progress__buffer::-ms-fill{border-radius:100px;-ms-transition:width .2s ease;transition:width .2s ease}.plyr--loading .plyr__progress__buffer{animation:plyr-progress 1s linear infinite;background-image:linear-gradient(-45deg,rgba(35,40,47,.6) 25%,transparent 25%,transparent 50%,rgba(35,40,47,.6) 50%,rgba(35,40,47,.6) 75%,transparent 75%,transparent);background-image:linear-gradient(-45deg,var(--plyr-progress-loading-background,rgba(35,40,47,.6)) 25%,transparent 25%,transparent 50%,var(--plyr-progress-loading-background,rgba(35,40,47,.6)) 50%,var(--plyr-progress-loading-background,rgba(35,40,47,.6)) 75%,transparent 75%,transparent);background-repeat:repeat-x;background-size:25px 25px;background-size:var(--plyr-progress-loading-size,25px) var(--plyr-progress-loading-size,25px);color:transparent}.plyr--video.plyr--loading .plyr__progress__buffer{background-color:rgba(255,255,255,.25);background-color:var(--plyr-video-progress-buffered-background,rgba(255,255,255,.25))}.plyr--audio.plyr--loading .plyr__progress__buffer{background-color:rgba(193,200,209,.6);background-color:var(--plyr-audio-progress-buffered-background,rgba(193,200,209,.6))}.plyr__volume{align-items:center;display:flex;max-width:110px;min-width:80px;position:relative;width:20%}.plyr__volume input[type=range]{margin-left:calc(10px / 2);margin-left:calc(var(--plyr-control-spacing,10px)/ 2);margin-right:calc(10px / 2);margin-right:calc(var(--plyr-control-spacing,10px)/ 2);position:relative;z-index:2}.plyr--is-ios .plyr__volume{min-width:0;width:auto}.plyr--audio{display:block}.plyr--audio .plyr__controls{background:#fff;background:var(--plyr-audio-controls-background,#fff);border-radius:inherit;color:#4a5464;color:var(--plyr-audio-control-color,#4a5464);padding:10px;padding:var(--plyr-control-spacing,10px)}.plyr--audio .plyr__control.plyr__tab-focus,.plyr--audio .plyr__control:hover,.plyr--audio .plyr__control[aria-expanded=true]{background:#00b3ff;background:var(--plyr-audio-control-background-hover,var(--plyr-color-main,var(--plyr-color-main,#00b3ff)));color:#fff;color:var(--plyr-audio-control-color-hover,#fff)}.plyr--full-ui.plyr--audio input[type=range]::-webkit-slider-runnable-track{background-color:rgba(193,200,209,.6);background-color:var(--plyr-audio-range-track-background,var(--plyr-audio-progress-buffered-background,rgba(193,200,209,.6)))}.plyr--full-ui.plyr--audio input[type=range]::-moz-range-track{background-color:rgba(193,200,209,.6);background-color:var(--plyr-audio-range-track-background,var(--plyr-audio-progress-buffered-background,rgba(193,200,209,.6)))}.plyr--full-ui.plyr--audio input[type=range]::-ms-track{background-color:rgba(193,200,209,.6);background-color:var(--plyr-audio-range-track-background,var(--plyr-audio-progress-buffered-background,rgba(193,200,209,.6)))}.plyr--full-ui.plyr--audio input[type=range]:active::-webkit-slider-thumb{box-shadow:0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2),0 0 0 3px rgba(35,40,47,.1);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2)),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,rgba(35,40,47,.1))}.plyr--full-ui.plyr--audio input[type=range]:active::-moz-range-thumb{box-shadow:0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2),0 0 0 3px rgba(35,40,47,.1);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2)),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,rgba(35,40,47,.1))}.plyr--full-ui.plyr--audio input[type=range]:active::-ms-thumb{box-shadow:0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2),0 0 0 3px rgba(35,40,47,.1);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2)),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,rgba(35,40,47,.1))}.plyr--audio .plyr__progress__buffer{color:rgba(193,200,209,.6);color:var(--plyr-audio-progress-buffered-background,rgba(193,200,209,.6))}.plyr--video{background:#000;background:var(--plyr-video-background,var(--plyr-video-background,#000));overflow:hidden}.plyr--video.plyr--menu-open{overflow:visible}.plyr__video-wrapper{background:#000;background:var(--plyr-video-background,var(--plyr-video-background,#000));height:100%;margin:auto;overflow:hidden;position:relative;width:100%}.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{height:0;padding-bottom:56.25%}.plyr__video-embed iframe,.plyr__video-wrapper--fixed-ratio video{border:0;left:0;position:absolute;top:0}.plyr--full-ui .plyr__video-embed>.plyr__video-embed__container{padding-bottom:240%;position:relative;transform:translateY(-38.28125%)}.plyr--video .plyr__controls{background:linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.75));background:var(--plyr-video-controls-background,linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.75)));border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;bottom:0;color:#fff;color:var(--plyr-video-control-color,#fff);left:0;padding:calc(10px / 2);padding:calc(var(--plyr-control-spacing,10px)/ 2);padding-top:calc(10px * 2);padding-top:calc(var(--plyr-control-spacing,10px) * 2);position:absolute;right:0;transition:opacity .4s ease-in-out,transform .4s ease-in-out;z-index:3}@media (min-width:480px){.plyr--video .plyr__controls{padding:10px;padding:var(--plyr-control-spacing,10px);padding-top:calc(10px * 3.5);padding-top:calc(var(--plyr-control-spacing,10px) * 3.5)}}.plyr--video.plyr--hide-controls .plyr__controls{opacity:0;pointer-events:none;transform:translateY(100%)}.plyr--video .plyr__control.plyr__tab-focus,.plyr--video .plyr__control:hover,.plyr--video .plyr__control[aria-expanded=true]{background:#00b3ff;background:var(--plyr-video-control-background-hover,var(--plyr-color-main,var(--plyr-color-main,#00b3ff)));color:#fff;color:var(--plyr-video-control-color-hover,#fff)}.plyr__control--overlaid{background:#00b3ff;background:var(--plyr-video-control-background-hover,var(--plyr-color-main,var(--plyr-color-main,#00b3ff)));border:0;border-radius:100%;color:#fff;color:var(--plyr-video-control-color,#fff);display:none;left:50%;opacity:.9;padding:calc(10px * 1.5);padding:calc(var(--plyr-control-spacing,10px) * 1.5);position:absolute;top:50%;transform:translate(-50%,-50%);transition:.3s;z-index:2}.plyr__control--overlaid svg{left:2px;position:relative}.plyr__control--overlaid:focus,.plyr__control--overlaid:hover{opacity:1}.plyr--playing .plyr__control--overlaid{opacity:0;visibility:hidden}.plyr--full-ui.plyr--video .plyr__control--overlaid{display:block}.plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track{background-color:rgba(255,255,255,.25);background-color:var(--plyr-video-range-track-background,var(--plyr-video-progress-buffered-background,rgba(255,255,255,.25)))}.plyr--full-ui.plyr--video input[type=range]::-moz-range-track{background-color:rgba(255,255,255,.25);background-color:var(--plyr-video-range-track-background,var(--plyr-video-progress-buffered-background,rgba(255,255,255,.25)))}.plyr--full-ui.plyr--video input[type=range]::-ms-track{background-color:rgba(255,255,255,.25);background-color:var(--plyr-video-range-track-background,var(--plyr-video-progress-buffered-background,rgba(255,255,255,.25)))}.plyr--full-ui.plyr--video input[type=range]:active::-webkit-slider-thumb{box-shadow:0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2),0 0 0 3px rgba(255,255,255,.5);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2)),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,rgba(255,255,255,.5))}.plyr--full-ui.plyr--video input[type=range]:active::-moz-range-thumb{box-shadow:0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2),0 0 0 3px rgba(255,255,255,.5);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2)),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,rgba(255,255,255,.5))}.plyr--full-ui.plyr--video input[type=range]:active::-ms-thumb{box-shadow:0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2),0 0 0 3px rgba(255,255,255,.5);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2)),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,rgba(255,255,255,.5))}.plyr--video .plyr__progress__buffer{color:rgba(255,255,255,.25);color:var(--plyr-video-progress-buffered-background,rgba(255,255,255,.25))}.plyr:-webkit-full-screen{background:#000;border-radius:0!important;height:100%;margin:0;width:100%}.plyr:-ms-fullscreen{background:#000;border-radius:0!important;height:100%;margin:0;width:100%}.plyr:fullscreen{background:#000;border-radius:0!important;height:100%;margin:0;width:100%}.plyr:-webkit-full-screen video{height:100%}.plyr:-ms-fullscreen video{height:100%}.plyr:fullscreen video{height:100%}.plyr:-webkit-full-screen .plyr__video-wrapper{height:100%;position:static}.plyr:-ms-fullscreen .plyr__video-wrapper{height:100%;position:static}.plyr:fullscreen .plyr__video-wrapper{height:100%;position:static}.plyr:-webkit-full-screen.plyr--vimeo .plyr__video-wrapper{height:0;position:relative}.plyr:-ms-fullscreen.plyr--vimeo .plyr__video-wrapper{height:0;position:relative}.plyr:fullscreen.plyr--vimeo .plyr__video-wrapper{height:0;position:relative}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-ms-fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-ms-fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-webkit-full-screen.plyr--hide-controls{cursor:none}.plyr:-ms-fullscreen.plyr--hide-controls{cursor:none}.plyr:fullscreen.plyr--hide-controls{cursor:none}@media (min-width:1024px){.plyr:-webkit-full-screen .plyr__captions{font-size:21px;font-size:var(--plyr-font-size-xlarge,21px)}.plyr:-ms-fullscreen .plyr__captions{font-size:21px;font-size:var(--plyr-font-size-xlarge,21px)}.plyr:fullscreen .plyr__captions{font-size:21px;font-size:var(--plyr-font-size-xlarge,21px)}}.plyr:-webkit-full-screen{background:#000;border-radius:0!important;height:100%;margin:0;width:100%}.plyr:-webkit-full-screen video{height:100%}.plyr:-webkit-full-screen .plyr__video-wrapper{height:100%;position:static}.plyr:-webkit-full-screen.plyr--vimeo .plyr__video-wrapper{height:0;position:relative}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-webkit-full-screen.plyr--hide-controls{cursor:none}@media (min-width:1024px){.plyr:-webkit-full-screen .plyr__captions{font-size:21px;font-size:var(--plyr-font-size-xlarge,21px)}}.plyr:-moz-full-screen{background:#000;border-radius:0!important;height:100%;margin:0;width:100%}.plyr:-moz-full-screen video{height:100%}.plyr:-moz-full-screen .plyr__video-wrapper{height:100%;position:static}.plyr:-moz-full-screen.plyr--vimeo .plyr__video-wrapper{height:0;position:relative}.plyr:-moz-full-screen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-moz-full-screen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-moz-full-screen.plyr--hide-controls{cursor:none}@media (min-width:1024px){.plyr:-moz-full-screen .plyr__captions{font-size:21px;font-size:var(--plyr-font-size-xlarge,21px)}}.plyr:-ms-fullscreen{background:#000;border-radius:0!important;height:100%;margin:0;width:100%}.plyr:-ms-fullscreen video{height:100%}.plyr:-ms-fullscreen .plyr__video-wrapper{height:100%;position:static}.plyr:-ms-fullscreen.plyr--vimeo .plyr__video-wrapper{height:0;position:relative}.plyr:-ms-fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-ms-fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-ms-fullscreen.plyr--hide-controls{cursor:none}@media (min-width:1024px){.plyr:-ms-fullscreen .plyr__captions{font-size:21px;font-size:var(--plyr-font-size-xlarge,21px)}}.plyr--fullscreen-fallback{background:#000;border-radius:0!important;height:100%;margin:0;width:100%;bottom:0;display:block;left:0;position:fixed;right:0;top:0;z-index:10000000}.plyr--fullscreen-fallback video{height:100%}.plyr--fullscreen-fallback .plyr__video-wrapper{height:100%;position:static}.plyr--fullscreen-fallback.plyr--vimeo .plyr__video-wrapper{height:0;position:relative}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen{display:block}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr--fullscreen-fallback.plyr--hide-controls{cursor:none}@media (min-width:1024px){.plyr--fullscreen-fallback .plyr__captions{font-size:21px;font-size:var(--plyr-font-size-xlarge,21px)}}.plyr__ads{border-radius:inherit;bottom:0;cursor:pointer;left:0;overflow:hidden;position:absolute;right:0;top:0;z-index:-1}.plyr__ads>div,.plyr__ads>div iframe{height:100%;position:absolute;width:100%}.plyr__ads::after{background:#23282f;border-radius:2px;bottom:10px;bottom:var(--plyr-control-spacing,10px);color:#fff;content:attr(data-badge-text);font-size:11px;padding:2px 6px;pointer-events:none;position:absolute;right:10px;right:var(--plyr-control-spacing,10px);z-index:3}.plyr__ads::after:empty{display:none}.plyr__cues{background:currentColor;display:block;height:5px;height:var(--plyr-range-track-height,5px);left:0;margin:-var(--plyr-range-track-height,5px)/2 0 0;opacity:.8;position:absolute;top:50%;width:3px;z-index:3}.plyr__preview-thumb{background-color:rgba(255,255,255,.9);background-color:var(--plyr-tooltip-background,rgba(255,255,255,.9));border-radius:3px;bottom:100%;box-shadow:0 1px 2px rgba(0,0,0,.15);box-shadow:var(--plyr-tooltip-shadow,0 1px 2px rgba(0,0,0,.15));margin-bottom:calc(calc(10px / 2) * 2);margin-bottom:calc(calc(var(--plyr-control-spacing,10px)/ 2) * 2);opacity:0;padding:3px;padding:var(--plyr-tooltip-radius,3px);pointer-events:none;position:absolute;transform:translate(0,10px) scale(.8);transform-origin:50% 100%;transition:transform .2s .1s ease,opacity .2s .1s ease;z-index:2}.plyr__preview-thumb--is-shown{opacity:1;transform:translate(0,0) scale(1)}.plyr__preview-thumb::before{border-left:4px solid transparent;border-left:var(--plyr-tooltip-arrow-size,4px) solid transparent;border-right:4px solid transparent;border-right:var(--plyr-tooltip-arrow-size,4px) solid transparent;border-top:4px solid rgba(255,255,255,.9);border-top:var(--plyr-tooltip-arrow-size,4px) solid var(--plyr-tooltip-background,rgba(255,255,255,.9));bottom:calc(4px * -1);bottom:calc(var(--plyr-tooltip-arrow-size,4px) * -1);content:'';height:0;left:50%;position:absolute;transform:translateX(-50%);width:0;z-index:2}.plyr__preview-thumb__image-container{background:#c1c8d1;border-radius:calc(3px - 1px);border-radius:calc(var(--plyr-tooltip-radius,3px) - 1px);overflow:hidden;position:relative;z-index:0}.plyr__preview-thumb__image-container img{height:100%;left:0;max-height:none;max-width:none;position:absolute;top:0;width:100%}.plyr__preview-thumb__time-container{bottom:6px;left:0;position:absolute;right:0;white-space:nowrap;z-index:3}.plyr__preview-thumb__time-container span{background-color:rgba(0,0,0,.55);border-radius:calc(3px - 1px);border-radius:calc(var(--plyr-tooltip-radius,3px) - 1px);color:#fff;font-size:13px;font-size:var(--plyr-font-size-time,var(--plyr-font-size-small,13px));padding:3px 6px}.plyr__preview-scrubbing{bottom:0;filter:blur(1px);height:100%;left:0;margin:auto;opacity:0;overflow:hidden;pointer-events:none;position:absolute;right:0;top:0;transition:opacity .3s ease;width:100%;z-index:1}.plyr__preview-scrubbing--is-shown{opacity:1}.plyr__preview-scrubbing img{height:100%;left:0;max-height:none;max-width:none;object-fit:contain;position:absolute;top:0;width:100%}.plyr--no-transition{transition:none!important}.plyr__sr-only{clip:rect(1px,1px,1px,1px);overflow:hidden;border:0!important;height:1px!important;padding:0!important;position:absolute!important;width:1px!important}.plyr [hidden]{display:none!important}";
  132. injectCss(css$i,{});
  133.  
  134. var css$h = ":root {\n --k-player-background-highlight: rgba(95, 95, 95, 0.65);\n --k-player-background: rgba(0, 0, 0, 0.65);\n --k-player-color: white;\n --k-player-primary-color: #00b3ff;\n --k-player-primary-color-highlight: rgba(0, 179, 255, 0.1);\n}\n\n.k-menu {\n list-style: none;\n margin: 0;\n padding: 0;\n border-radius: 4px;\n overflow: hidden;\n}\n.k-menu-item {\n padding: 0 16px;\n line-height: 36px;\n height: 36px;\n cursor: pointer;\n width: 100%;\n white-space: nowrap;\n color: white;\n transition: all 0.3s;\n text-align: center;\n}\n.k-menu-item:hover {\n background: var(--k-player-background-highlight);\n}\n\n.k-btn, .k-capsule div {\n color: var(--k-player-primary-color);\n padding: 4px 8px;\n border-radius: 4px;\n cursor: pointer;\n white-space: nowrap;\n transition: all 0.15s;\n user-select: none;\n text-decoration: none;\n}\n.k-btn:hover, .k-capsule div:hover {\n color: var(--k-player-primary-color);\n background: var(--k-player-primary-color-highlight);\n}\n\n.k-capsule div {\n background: var(--k-player-primary-color-highlight);\n}\n.k-capsule input:not(:checked) + div {\n color: #999;\n background: #ddd;\n}\n\n.k-menu-item.k-menu-active {\n color: var(--k-player-primary-color);\n}\n\n.k-input, .k-input-number,\n.k-select {\n background: white;\n border: 1px solid #d9d9d9;\n color: black;\n outline: 0;\n border-radius: 2px;\n transition: all 0.15s ease;\n}\n.k-input:focus, .k-input-number:focus, .k-input:hover, .k-input-number:hover,\n.k-select:focus,\n.k-select:hover {\n border-color: var(--k-player-primary-color);\n}\n.k-input::placeholder, .k-input-number::placeholder,\n.k-select::placeholder {\n color: #999;\n}\n\n.k-checkbox {\n display: inline-flex;\n align-items: center;\n cursor: pointer;\n}\n.k-checkbox input {\n margin: 0;\n margin-right: 4px;\n}\n\n.k-settings-list {\n margin: 0;\n padding: 8px;\n text-align: left;\n}\n.k-settings-list label {\n cursor: pointer;\n}\n.k-settings-item {\n width: 100%;\n white-space: nowrap;\n color: white;\n display: flex;\n align-items: center;\n gap: 8px;\n}\n.k-settings-list > .k-settings-item + .k-settings-item {\n margin-top: 8px;\n}\n\n.k-table {\n width: 100%;\n border-spacing: 0;\n border-collapse: separate;\n}\n.k-table th,\n.k-table td {\n padding: 8px;\n border: none;\n border-bottom: 1px solid #f1f1f1;\n word-wrap: break-word;\n word-break: break-all;\n}\n\n.k-input-number {\n height: 32px;\n width: 100px;\n border-radius: 4px;\n padding: 0 8px;\n box-sizing: border-box;\n font-size: 14px;\n -webkit-appearance: none;\n appearance: none;\n}\n.k-input-number[type=number]::-webkit-outer-spin-button, .k-input-number[type=number]::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}";
  135. injectCss(css$h,{});
  136.  
  137. /** Detect free variable `global` from Node.js. */
  138. var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
  139.  
  140. /** Detect free variable `self`. */
  141. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  142.  
  143. /** Used as a reference to the global object. */
  144. var root = freeGlobal || freeSelf || Function('return this')();
  145.  
  146. /** Built-in value references. */
  147. var Symbol = root.Symbol;
  148.  
  149. /** Used for built-in method references. */
  150. var objectProto$5 = Object.prototype;
  151.  
  152. /** Used to check objects for own properties. */
  153. var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
  154.  
  155. /**
  156. * Used to resolve the
  157. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  158. * of values.
  159. */
  160. var nativeObjectToString$1 = objectProto$5.toString;
  161.  
  162. /** Built-in value references. */
  163. var symToStringTag$1 = Symbol ? Symbol.toStringTag : undefined;
  164.  
  165. /**
  166. * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
  167. *
  168. * @private
  169. * @param {*} value The value to query.
  170. * @returns {string} Returns the raw `toStringTag`.
  171. */
  172. function getRawTag(value) {
  173. var isOwn = hasOwnProperty$4.call(value, symToStringTag$1),
  174. tag = value[symToStringTag$1];
  175.  
  176. try {
  177. value[symToStringTag$1] = undefined;
  178. var unmasked = true;
  179. } catch (e) {}
  180.  
  181. var result = nativeObjectToString$1.call(value);
  182. if (unmasked) {
  183. if (isOwn) {
  184. value[symToStringTag$1] = tag;
  185. } else {
  186. delete value[symToStringTag$1];
  187. }
  188. }
  189. return result;
  190. }
  191.  
  192. /** Used for built-in method references. */
  193. var objectProto$4 = Object.prototype;
  194.  
  195. /**
  196. * Used to resolve the
  197. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  198. * of values.
  199. */
  200. var nativeObjectToString = objectProto$4.toString;
  201.  
  202. /**
  203. * Converts `value` to a string using `Object.prototype.toString`.
  204. *
  205. * @private
  206. * @param {*} value The value to convert.
  207. * @returns {string} Returns the converted string.
  208. */
  209. function objectToString(value) {
  210. return nativeObjectToString.call(value);
  211. }
  212.  
  213. /** `Object#toString` result references. */
  214. var nullTag = '[object Null]',
  215. undefinedTag = '[object Undefined]';
  216.  
  217. /** Built-in value references. */
  218. var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  219.  
  220. /**
  221. * The base implementation of `getTag` without fallbacks for buggy environments.
  222. *
  223. * @private
  224. * @param {*} value The value to query.
  225. * @returns {string} Returns the `toStringTag`.
  226. */
  227. function baseGetTag(value) {
  228. if (value == null) {
  229. return value === undefined ? undefinedTag : nullTag;
  230. }
  231. return (symToStringTag && symToStringTag in Object(value))
  232. ? getRawTag(value)
  233. : objectToString(value);
  234. }
  235.  
  236. /**
  237. * Checks if `value` is object-like. A value is object-like if it's not `null`
  238. * and has a `typeof` result of "object".
  239. *
  240. * @static
  241. * @memberOf _
  242. * @since 4.0.0
  243. * @category Lang
  244. * @param {*} value The value to check.
  245. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  246. * @example
  247. *
  248. * _.isObjectLike({});
  249. * // => true
  250. *
  251. * _.isObjectLike([1, 2, 3]);
  252. * // => true
  253. *
  254. * _.isObjectLike(_.noop);
  255. * // => false
  256. *
  257. * _.isObjectLike(null);
  258. * // => false
  259. */
  260. function isObjectLike(value) {
  261. return value != null && typeof value == 'object';
  262. }
  263.  
  264. /** `Object#toString` result references. */
  265. var symbolTag = '[object Symbol]';
  266.  
  267. /**
  268. * Checks if `value` is classified as a `Symbol` primitive or object.
  269. *
  270. * @static
  271. * @memberOf _
  272. * @since 4.0.0
  273. * @category Lang
  274. * @param {*} value The value to check.
  275. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
  276. * @example
  277. *
  278. * _.isSymbol(Symbol.iterator);
  279. * // => true
  280. *
  281. * _.isSymbol('abc');
  282. * // => false
  283. */
  284. function isSymbol(value) {
  285. return typeof value == 'symbol' ||
  286. (isObjectLike(value) && baseGetTag(value) == symbolTag);
  287. }
  288.  
  289. /**
  290. * A specialized version of `_.map` for arrays without support for iteratee
  291. * shorthands.
  292. *
  293. * @private
  294. * @param {Array} [array] The array to iterate over.
  295. * @param {Function} iteratee The function invoked per iteration.
  296. * @returns {Array} Returns the new mapped array.
  297. */
  298. function arrayMap(array, iteratee) {
  299. var index = -1,
  300. length = array == null ? 0 : array.length,
  301. result = Array(length);
  302.  
  303. while (++index < length) {
  304. result[index] = iteratee(array[index], index, array);
  305. }
  306. return result;
  307. }
  308.  
  309. /**
  310. * Checks if `value` is classified as an `Array` object.
  311. *
  312. * @static
  313. * @memberOf _
  314. * @since 0.1.0
  315. * @category Lang
  316. * @param {*} value The value to check.
  317. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  318. * @example
  319. *
  320. * _.isArray([1, 2, 3]);
  321. * // => true
  322. *
  323. * _.isArray(document.body.children);
  324. * // => false
  325. *
  326. * _.isArray('abc');
  327. * // => false
  328. *
  329. * _.isArray(_.noop);
  330. * // => false
  331. */
  332. var isArray = Array.isArray;
  333.  
  334. /** Used as references for various `Number` constants. */
  335. var INFINITY$1 = 1 / 0;
  336.  
  337. /** Used to convert symbols to primitives and strings. */
  338. var symbolProto = Symbol ? Symbol.prototype : undefined,
  339. symbolToString = symbolProto ? symbolProto.toString : undefined;
  340.  
  341. /**
  342. * The base implementation of `_.toString` which doesn't convert nullish
  343. * values to empty strings.
  344. *
  345. * @private
  346. * @param {*} value The value to process.
  347. * @returns {string} Returns the string.
  348. */
  349. function baseToString(value) {
  350. // Exit early for strings to avoid a performance hit in some environments.
  351. if (typeof value == 'string') {
  352. return value;
  353. }
  354. if (isArray(value)) {
  355. // Recursively convert values (susceptible to call stack limits).
  356. return arrayMap(value, baseToString) + '';
  357. }
  358. if (isSymbol(value)) {
  359. return symbolToString ? symbolToString.call(value) : '';
  360. }
  361. var result = (value + '');
  362. return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
  363. }
  364.  
  365. /** Used to match a single whitespace character. */
  366. var reWhitespace = /\s/;
  367.  
  368. /**
  369. * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
  370. * character of `string`.
  371. *
  372. * @private
  373. * @param {string} string The string to inspect.
  374. * @returns {number} Returns the index of the last non-whitespace character.
  375. */
  376. function trimmedEndIndex(string) {
  377. var index = string.length;
  378.  
  379. while (index-- && reWhitespace.test(string.charAt(index))) {}
  380. return index;
  381. }
  382.  
  383. /** Used to match leading whitespace. */
  384. var reTrimStart = /^\s+/;
  385.  
  386. /**
  387. * The base implementation of `_.trim`.
  388. *
  389. * @private
  390. * @param {string} string The string to trim.
  391. * @returns {string} Returns the trimmed string.
  392. */
  393. function baseTrim(string) {
  394. return string
  395. ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
  396. : string;
  397. }
  398.  
  399. /**
  400. * Checks if `value` is the
  401. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  402. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  403. *
  404. * @static
  405. * @memberOf _
  406. * @since 0.1.0
  407. * @category Lang
  408. * @param {*} value The value to check.
  409. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  410. * @example
  411. *
  412. * _.isObject({});
  413. * // => true
  414. *
  415. * _.isObject([1, 2, 3]);
  416. * // => true
  417. *
  418. * _.isObject(_.noop);
  419. * // => true
  420. *
  421. * _.isObject(null);
  422. * // => false
  423. */
  424. function isObject(value) {
  425. var type = typeof value;
  426. return value != null && (type == 'object' || type == 'function');
  427. }
  428.  
  429. /** Used as references for various `Number` constants. */
  430. var NAN = 0 / 0;
  431.  
  432. /** Used to detect bad signed hexadecimal string values. */
  433. var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
  434.  
  435. /** Used to detect binary string values. */
  436. var reIsBinary = /^0b[01]+$/i;
  437.  
  438. /** Used to detect octal string values. */
  439. var reIsOctal = /^0o[0-7]+$/i;
  440.  
  441. /** Built-in method references without a dependency on `root`. */
  442. var freeParseInt = parseInt;
  443.  
  444. /**
  445. * Converts `value` to a number.
  446. *
  447. * @static
  448. * @memberOf _
  449. * @since 4.0.0
  450. * @category Lang
  451. * @param {*} value The value to process.
  452. * @returns {number} Returns the number.
  453. * @example
  454. *
  455. * _.toNumber(3.2);
  456. * // => 3.2
  457. *
  458. * _.toNumber(Number.MIN_VALUE);
  459. * // => 5e-324
  460. *
  461. * _.toNumber(Infinity);
  462. * // => Infinity
  463. *
  464. * _.toNumber('3.2');
  465. * // => 3.2
  466. */
  467. function toNumber(value) {
  468. if (typeof value == 'number') {
  469. return value;
  470. }
  471. if (isSymbol(value)) {
  472. return NAN;
  473. }
  474. if (isObject(value)) {
  475. var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
  476. value = isObject(other) ? (other + '') : other;
  477. }
  478. if (typeof value != 'string') {
  479. return value === 0 ? value : +value;
  480. }
  481. value = baseTrim(value);
  482. var isBinary = reIsBinary.test(value);
  483. return (isBinary || reIsOctal.test(value))
  484. ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
  485. : (reIsBadHex.test(value) ? NAN : +value);
  486. }
  487.  
  488. /** `Object#toString` result references. */
  489. var asyncTag = '[object AsyncFunction]',
  490. funcTag = '[object Function]',
  491. genTag = '[object GeneratorFunction]',
  492. proxyTag = '[object Proxy]';
  493.  
  494. /**
  495. * Checks if `value` is classified as a `Function` object.
  496. *
  497. * @static
  498. * @memberOf _
  499. * @since 0.1.0
  500. * @category Lang
  501. * @param {*} value The value to check.
  502. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  503. * @example
  504. *
  505. * _.isFunction(_);
  506. * // => true
  507. *
  508. * _.isFunction(/abc/);
  509. * // => false
  510. */
  511. function isFunction(value) {
  512. if (!isObject(value)) {
  513. return false;
  514. }
  515. // The use of `Object#toString` avoids issues with the `typeof` operator
  516. // in Safari 9 which returns 'object' for typed arrays and other constructors.
  517. var tag = baseGetTag(value);
  518. return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
  519. }
  520.  
  521. /** Used to detect overreaching core-js shims. */
  522. var coreJsData = root['__core-js_shared__'];
  523.  
  524. /** Used to detect methods masquerading as native. */
  525. var maskSrcKey = (function() {
  526. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  527. return uid ? ('Symbol(src)_1.' + uid) : '';
  528. }());
  529.  
  530. /**
  531. * Checks if `func` has its source masked.
  532. *
  533. * @private
  534. * @param {Function} func The function to check.
  535. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  536. */
  537. function isMasked(func) {
  538. return !!maskSrcKey && (maskSrcKey in func);
  539. }
  540.  
  541. /** Used for built-in method references. */
  542. var funcProto$1 = Function.prototype;
  543.  
  544. /** Used to resolve the decompiled source of functions. */
  545. var funcToString$1 = funcProto$1.toString;
  546.  
  547. /**
  548. * Converts `func` to its source code.
  549. *
  550. * @private
  551. * @param {Function} func The function to convert.
  552. * @returns {string} Returns the source code.
  553. */
  554. function toSource(func) {
  555. if (func != null) {
  556. try {
  557. return funcToString$1.call(func);
  558. } catch (e) {}
  559. try {
  560. return (func + '');
  561. } catch (e) {}
  562. }
  563. return '';
  564. }
  565.  
  566. /**
  567. * Used to match `RegExp`
  568. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  569. */
  570. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
  571.  
  572. /** Used to detect host constructors (Safari). */
  573. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  574.  
  575. /** Used for built-in method references. */
  576. var funcProto = Function.prototype,
  577. objectProto$3 = Object.prototype;
  578.  
  579. /** Used to resolve the decompiled source of functions. */
  580. var funcToString = funcProto.toString;
  581.  
  582. /** Used to check objects for own properties. */
  583. var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
  584.  
  585. /** Used to detect if a method is native. */
  586. var reIsNative = RegExp('^' +
  587. funcToString.call(hasOwnProperty$3).replace(reRegExpChar, '\\$&')
  588. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  589. );
  590.  
  591. /**
  592. * The base implementation of `_.isNative` without bad shim checks.
  593. *
  594. * @private
  595. * @param {*} value The value to check.
  596. * @returns {boolean} Returns `true` if `value` is a native function,
  597. * else `false`.
  598. */
  599. function baseIsNative(value) {
  600. if (!isObject(value) || isMasked(value)) {
  601. return false;
  602. }
  603. var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
  604. return pattern.test(toSource(value));
  605. }
  606.  
  607. /**
  608. * Gets the value at `key` of `object`.
  609. *
  610. * @private
  611. * @param {Object} [object] The object to query.
  612. * @param {string} key The key of the property to get.
  613. * @returns {*} Returns the property value.
  614. */
  615. function getValue(object, key) {
  616. return object == null ? undefined : object[key];
  617. }
  618.  
  619. /**
  620. * Gets the native function at `key` of `object`.
  621. *
  622. * @private
  623. * @param {Object} object The object to query.
  624. * @param {string} key The key of the method to get.
  625. * @returns {*} Returns the function if it's native, else `undefined`.
  626. */
  627. function getNative(object, key) {
  628. var value = getValue(object, key);
  629. return baseIsNative(value) ? value : undefined;
  630. }
  631.  
  632. var defineProperty = (function() {
  633. try {
  634. var func = getNative(Object, 'defineProperty');
  635. func({}, '', {});
  636. return func;
  637. } catch (e) {}
  638. }());
  639.  
  640. /** Used as references for various `Number` constants. */
  641. var MAX_SAFE_INTEGER = 9007199254740991;
  642.  
  643. /** Used to detect unsigned integer values. */
  644. var reIsUint = /^(?:0|[1-9]\d*)$/;
  645.  
  646. /**
  647. * Checks if `value` is a valid array-like index.
  648. *
  649. * @private
  650. * @param {*} value The value to check.
  651. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
  652. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
  653. */
  654. function isIndex(value, length) {
  655. var type = typeof value;
  656. length = length == null ? MAX_SAFE_INTEGER : length;
  657.  
  658. return !!length &&
  659. (type == 'number' ||
  660. (type != 'symbol' && reIsUint.test(value))) &&
  661. (value > -1 && value % 1 == 0 && value < length);
  662. }
  663.  
  664. /**
  665. * The base implementation of `assignValue` and `assignMergeValue` without
  666. * value checks.
  667. *
  668. * @private
  669. * @param {Object} object The object to modify.
  670. * @param {string} key The key of the property to assign.
  671. * @param {*} value The value to assign.
  672. */
  673. function baseAssignValue(object, key, value) {
  674. if (key == '__proto__' && defineProperty) {
  675. defineProperty(object, key, {
  676. 'configurable': true,
  677. 'enumerable': true,
  678. 'value': value,
  679. 'writable': true
  680. });
  681. } else {
  682. object[key] = value;
  683. }
  684. }
  685.  
  686. /**
  687. * Performs a
  688. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  689. * comparison between two values to determine if they are equivalent.
  690. *
  691. * @static
  692. * @memberOf _
  693. * @since 4.0.0
  694. * @category Lang
  695. * @param {*} value The value to compare.
  696. * @param {*} other The other value to compare.
  697. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  698. * @example
  699. *
  700. * var object = { 'a': 1 };
  701. * var other = { 'a': 1 };
  702. *
  703. * _.eq(object, object);
  704. * // => true
  705. *
  706. * _.eq(object, other);
  707. * // => false
  708. *
  709. * _.eq('a', 'a');
  710. * // => true
  711. *
  712. * _.eq('a', Object('a'));
  713. * // => false
  714. *
  715. * _.eq(NaN, NaN);
  716. * // => true
  717. */
  718. function eq(value, other) {
  719. return value === other || (value !== value && other !== other);
  720. }
  721.  
  722. /** Used for built-in method references. */
  723. var objectProto$2 = Object.prototype;
  724.  
  725. /** Used to check objects for own properties. */
  726. var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
  727.  
  728. /**
  729. * Assigns `value` to `key` of `object` if the existing value is not equivalent
  730. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  731. * for equality comparisons.
  732. *
  733. * @private
  734. * @param {Object} object The object to modify.
  735. * @param {string} key The key of the property to assign.
  736. * @param {*} value The value to assign.
  737. */
  738. function assignValue(object, key, value) {
  739. var objValue = object[key];
  740. if (!(hasOwnProperty$2.call(object, key) && eq(objValue, value)) ||
  741. (value === undefined && !(key in object))) {
  742. baseAssignValue(object, key, value);
  743. }
  744. }
  745.  
  746. /** Used to match property names within property paths. */
  747. var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
  748. reIsPlainProp = /^\w*$/;
  749.  
  750. /**
  751. * Checks if `value` is a property name and not a property path.
  752. *
  753. * @private
  754. * @param {*} value The value to check.
  755. * @param {Object} [object] The object to query keys on.
  756. * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
  757. */
  758. function isKey(value, object) {
  759. if (isArray(value)) {
  760. return false;
  761. }
  762. var type = typeof value;
  763. if (type == 'number' || type == 'symbol' || type == 'boolean' ||
  764. value == null || isSymbol(value)) {
  765. return true;
  766. }
  767. return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
  768. (object != null && value in Object(object));
  769. }
  770.  
  771. /* Built-in method references that are verified to be native. */
  772. var nativeCreate = getNative(Object, 'create');
  773.  
  774. /**
  775. * Removes all key-value entries from the hash.
  776. *
  777. * @private
  778. * @name clear
  779. * @memberOf Hash
  780. */
  781. function hashClear() {
  782. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  783. this.size = 0;
  784. }
  785.  
  786. /**
  787. * Removes `key` and its value from the hash.
  788. *
  789. * @private
  790. * @name delete
  791. * @memberOf Hash
  792. * @param {Object} hash The hash to modify.
  793. * @param {string} key The key of the value to remove.
  794. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  795. */
  796. function hashDelete(key) {
  797. var result = this.has(key) && delete this.__data__[key];
  798. this.size -= result ? 1 : 0;
  799. return result;
  800. }
  801.  
  802. /** Used to stand-in for `undefined` hash values. */
  803. var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
  804.  
  805. /** Used for built-in method references. */
  806. var objectProto$1 = Object.prototype;
  807.  
  808. /** Used to check objects for own properties. */
  809. var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
  810.  
  811. /**
  812. * Gets the hash value for `key`.
  813. *
  814. * @private
  815. * @name get
  816. * @memberOf Hash
  817. * @param {string} key The key of the value to get.
  818. * @returns {*} Returns the entry value.
  819. */
  820. function hashGet(key) {
  821. var data = this.__data__;
  822. if (nativeCreate) {
  823. var result = data[key];
  824. return result === HASH_UNDEFINED$1 ? undefined : result;
  825. }
  826. return hasOwnProperty$1.call(data, key) ? data[key] : undefined;
  827. }
  828.  
  829. /** Used for built-in method references. */
  830. var objectProto = Object.prototype;
  831.  
  832. /** Used to check objects for own properties. */
  833. var hasOwnProperty = objectProto.hasOwnProperty;
  834.  
  835. /**
  836. * Checks if a hash value for `key` exists.
  837. *
  838. * @private
  839. * @name has
  840. * @memberOf Hash
  841. * @param {string} key The key of the entry to check.
  842. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  843. */
  844. function hashHas(key) {
  845. var data = this.__data__;
  846. return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
  847. }
  848.  
  849. /** Used to stand-in for `undefined` hash values. */
  850. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  851.  
  852. /**
  853. * Sets the hash `key` to `value`.
  854. *
  855. * @private
  856. * @name set
  857. * @memberOf Hash
  858. * @param {string} key The key of the value to set.
  859. * @param {*} value The value to set.
  860. * @returns {Object} Returns the hash instance.
  861. */
  862. function hashSet(key, value) {
  863. var data = this.__data__;
  864. this.size += this.has(key) ? 0 : 1;
  865. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  866. return this;
  867. }
  868.  
  869. /**
  870. * Creates a hash object.
  871. *
  872. * @private
  873. * @constructor
  874. * @param {Array} [entries] The key-value pairs to cache.
  875. */
  876. function Hash(entries) {
  877. var index = -1,
  878. length = entries == null ? 0 : entries.length;
  879.  
  880. this.clear();
  881. while (++index < length) {
  882. var entry = entries[index];
  883. this.set(entry[0], entry[1]);
  884. }
  885. }
  886.  
  887. // Add methods to `Hash`.
  888. Hash.prototype.clear = hashClear;
  889. Hash.prototype['delete'] = hashDelete;
  890. Hash.prototype.get = hashGet;
  891. Hash.prototype.has = hashHas;
  892. Hash.prototype.set = hashSet;
  893.  
  894. /**
  895. * Removes all key-value entries from the list cache.
  896. *
  897. * @private
  898. * @name clear
  899. * @memberOf ListCache
  900. */
  901. function listCacheClear() {
  902. this.__data__ = [];
  903. this.size = 0;
  904. }
  905.  
  906. /**
  907. * Gets the index at which the `key` is found in `array` of key-value pairs.
  908. *
  909. * @private
  910. * @param {Array} array The array to inspect.
  911. * @param {*} key The key to search for.
  912. * @returns {number} Returns the index of the matched value, else `-1`.
  913. */
  914. function assocIndexOf(array, key) {
  915. var length = array.length;
  916. while (length--) {
  917. if (eq(array[length][0], key)) {
  918. return length;
  919. }
  920. }
  921. return -1;
  922. }
  923.  
  924. /** Used for built-in method references. */
  925. var arrayProto = Array.prototype;
  926.  
  927. /** Built-in value references. */
  928. var splice = arrayProto.splice;
  929.  
  930. /**
  931. * Removes `key` and its value from the list cache.
  932. *
  933. * @private
  934. * @name delete
  935. * @memberOf ListCache
  936. * @param {string} key The key of the value to remove.
  937. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  938. */
  939. function listCacheDelete(key) {
  940. var data = this.__data__,
  941. index = assocIndexOf(data, key);
  942.  
  943. if (index < 0) {
  944. return false;
  945. }
  946. var lastIndex = data.length - 1;
  947. if (index == lastIndex) {
  948. data.pop();
  949. } else {
  950. splice.call(data, index, 1);
  951. }
  952. --this.size;
  953. return true;
  954. }
  955.  
  956. /**
  957. * Gets the list cache value for `key`.
  958. *
  959. * @private
  960. * @name get
  961. * @memberOf ListCache
  962. * @param {string} key The key of the value to get.
  963. * @returns {*} Returns the entry value.
  964. */
  965. function listCacheGet(key) {
  966. var data = this.__data__,
  967. index = assocIndexOf(data, key);
  968.  
  969. return index < 0 ? undefined : data[index][1];
  970. }
  971.  
  972. /**
  973. * Checks if a list cache value for `key` exists.
  974. *
  975. * @private
  976. * @name has
  977. * @memberOf ListCache
  978. * @param {string} key The key of the entry to check.
  979. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  980. */
  981. function listCacheHas(key) {
  982. return assocIndexOf(this.__data__, key) > -1;
  983. }
  984.  
  985. /**
  986. * Sets the list cache `key` to `value`.
  987. *
  988. * @private
  989. * @name set
  990. * @memberOf ListCache
  991. * @param {string} key The key of the value to set.
  992. * @param {*} value The value to set.
  993. * @returns {Object} Returns the list cache instance.
  994. */
  995. function listCacheSet(key, value) {
  996. var data = this.__data__,
  997. index = assocIndexOf(data, key);
  998.  
  999. if (index < 0) {
  1000. ++this.size;
  1001. data.push([key, value]);
  1002. } else {
  1003. data[index][1] = value;
  1004. }
  1005. return this;
  1006. }
  1007.  
  1008. /**
  1009. * Creates an list cache object.
  1010. *
  1011. * @private
  1012. * @constructor
  1013. * @param {Array} [entries] The key-value pairs to cache.
  1014. */
  1015. function ListCache(entries) {
  1016. var index = -1,
  1017. length = entries == null ? 0 : entries.length;
  1018.  
  1019. this.clear();
  1020. while (++index < length) {
  1021. var entry = entries[index];
  1022. this.set(entry[0], entry[1]);
  1023. }
  1024. }
  1025.  
  1026. // Add methods to `ListCache`.
  1027. ListCache.prototype.clear = listCacheClear;
  1028. ListCache.prototype['delete'] = listCacheDelete;
  1029. ListCache.prototype.get = listCacheGet;
  1030. ListCache.prototype.has = listCacheHas;
  1031. ListCache.prototype.set = listCacheSet;
  1032.  
  1033. /* Built-in method references that are verified to be native. */
  1034. var Map = getNative(root, 'Map');
  1035.  
  1036. /**
  1037. * Removes all key-value entries from the map.
  1038. *
  1039. * @private
  1040. * @name clear
  1041. * @memberOf MapCache
  1042. */
  1043. function mapCacheClear() {
  1044. this.size = 0;
  1045. this.__data__ = {
  1046. 'hash': new Hash,
  1047. 'map': new (Map || ListCache),
  1048. 'string': new Hash
  1049. };
  1050. }
  1051.  
  1052. /**
  1053. * Checks if `value` is suitable for use as unique object key.
  1054. *
  1055. * @private
  1056. * @param {*} value The value to check.
  1057. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  1058. */
  1059. function isKeyable(value) {
  1060. var type = typeof value;
  1061. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  1062. ? (value !== '__proto__')
  1063. : (value === null);
  1064. }
  1065.  
  1066. /**
  1067. * Gets the data for `map`.
  1068. *
  1069. * @private
  1070. * @param {Object} map The map to query.
  1071. * @param {string} key The reference key.
  1072. * @returns {*} Returns the map data.
  1073. */
  1074. function getMapData(map, key) {
  1075. var data = map.__data__;
  1076. return isKeyable(key)
  1077. ? data[typeof key == 'string' ? 'string' : 'hash']
  1078. : data.map;
  1079. }
  1080.  
  1081. /**
  1082. * Removes `key` and its value from the map.
  1083. *
  1084. * @private
  1085. * @name delete
  1086. * @memberOf MapCache
  1087. * @param {string} key The key of the value to remove.
  1088. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  1089. */
  1090. function mapCacheDelete(key) {
  1091. var result = getMapData(this, key)['delete'](key);
  1092. this.size -= result ? 1 : 0;
  1093. return result;
  1094. }
  1095.  
  1096. /**
  1097. * Gets the map value for `key`.
  1098. *
  1099. * @private
  1100. * @name get
  1101. * @memberOf MapCache
  1102. * @param {string} key The key of the value to get.
  1103. * @returns {*} Returns the entry value.
  1104. */
  1105. function mapCacheGet(key) {
  1106. return getMapData(this, key).get(key);
  1107. }
  1108.  
  1109. /**
  1110. * Checks if a map value for `key` exists.
  1111. *
  1112. * @private
  1113. * @name has
  1114. * @memberOf MapCache
  1115. * @param {string} key The key of the entry to check.
  1116. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  1117. */
  1118. function mapCacheHas(key) {
  1119. return getMapData(this, key).has(key);
  1120. }
  1121.  
  1122. /**
  1123. * Sets the map `key` to `value`.
  1124. *
  1125. * @private
  1126. * @name set
  1127. * @memberOf MapCache
  1128. * @param {string} key The key of the value to set.
  1129. * @param {*} value The value to set.
  1130. * @returns {Object} Returns the map cache instance.
  1131. */
  1132. function mapCacheSet(key, value) {
  1133. var data = getMapData(this, key),
  1134. size = data.size;
  1135.  
  1136. data.set(key, value);
  1137. this.size += data.size == size ? 0 : 1;
  1138. return this;
  1139. }
  1140.  
  1141. /**
  1142. * Creates a map cache object to store key-value pairs.
  1143. *
  1144. * @private
  1145. * @constructor
  1146. * @param {Array} [entries] The key-value pairs to cache.
  1147. */
  1148. function MapCache(entries) {
  1149. var index = -1,
  1150. length = entries == null ? 0 : entries.length;
  1151.  
  1152. this.clear();
  1153. while (++index < length) {
  1154. var entry = entries[index];
  1155. this.set(entry[0], entry[1]);
  1156. }
  1157. }
  1158.  
  1159. // Add methods to `MapCache`.
  1160. MapCache.prototype.clear = mapCacheClear;
  1161. MapCache.prototype['delete'] = mapCacheDelete;
  1162. MapCache.prototype.get = mapCacheGet;
  1163. MapCache.prototype.has = mapCacheHas;
  1164. MapCache.prototype.set = mapCacheSet;
  1165.  
  1166. /** Error message constants. */
  1167. var FUNC_ERROR_TEXT$2 = 'Expected a function';
  1168.  
  1169. /**
  1170. * Creates a function that memoizes the result of `func`. If `resolver` is
  1171. * provided, it determines the cache key for storing the result based on the
  1172. * arguments provided to the memoized function. By default, the first argument
  1173. * provided to the memoized function is used as the map cache key. The `func`
  1174. * is invoked with the `this` binding of the memoized function.
  1175. *
  1176. * **Note:** The cache is exposed as the `cache` property on the memoized
  1177. * function. Its creation may be customized by replacing the `_.memoize.Cache`
  1178. * constructor with one whose instances implement the
  1179. * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
  1180. * method interface of `clear`, `delete`, `get`, `has`, and `set`.
  1181. *
  1182. * @static
  1183. * @memberOf _
  1184. * @since 0.1.0
  1185. * @category Function
  1186. * @param {Function} func The function to have its output memoized.
  1187. * @param {Function} [resolver] The function to resolve the cache key.
  1188. * @returns {Function} Returns the new memoized function.
  1189. * @example
  1190. *
  1191. * var object = { 'a': 1, 'b': 2 };
  1192. * var other = { 'c': 3, 'd': 4 };
  1193. *
  1194. * var values = _.memoize(_.values);
  1195. * values(object);
  1196. * // => [1, 2]
  1197. *
  1198. * values(other);
  1199. * // => [3, 4]
  1200. *
  1201. * object.a = 2;
  1202. * values(object);
  1203. * // => [1, 2]
  1204. *
  1205. * // Modify the result cache.
  1206. * values.cache.set(object, ['a', 'b']);
  1207. * values(object);
  1208. * // => ['a', 'b']
  1209. *
  1210. * // Replace `_.memoize.Cache`.
  1211. * _.memoize.Cache = WeakMap;
  1212. */
  1213. function memoize(func, resolver) {
  1214. if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
  1215. throw new TypeError(FUNC_ERROR_TEXT$2);
  1216. }
  1217. var memoized = function() {
  1218. var args = arguments,
  1219. key = resolver ? resolver.apply(this, args) : args[0],
  1220. cache = memoized.cache;
  1221.  
  1222. if (cache.has(key)) {
  1223. return cache.get(key);
  1224. }
  1225. var result = func.apply(this, args);
  1226. memoized.cache = cache.set(key, result) || cache;
  1227. return result;
  1228. };
  1229. memoized.cache = new (memoize.Cache || MapCache);
  1230. return memoized;
  1231. }
  1232.  
  1233. // Expose `MapCache`.
  1234. memoize.Cache = MapCache;
  1235.  
  1236. /** Used as the maximum memoize cache size. */
  1237. var MAX_MEMOIZE_SIZE = 500;
  1238.  
  1239. /**
  1240. * A specialized version of `_.memoize` which clears the memoized function's
  1241. * cache when it exceeds `MAX_MEMOIZE_SIZE`.
  1242. *
  1243. * @private
  1244. * @param {Function} func The function to have its output memoized.
  1245. * @returns {Function} Returns the new memoized function.
  1246. */
  1247. function memoizeCapped(func) {
  1248. var result = memoize(func, function(key) {
  1249. if (cache.size === MAX_MEMOIZE_SIZE) {
  1250. cache.clear();
  1251. }
  1252. return key;
  1253. });
  1254.  
  1255. var cache = result.cache;
  1256. return result;
  1257. }
  1258.  
  1259. /** Used to match property names within property paths. */
  1260. var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
  1261.  
  1262. /** Used to match backslashes in property paths. */
  1263. var reEscapeChar = /\\(\\)?/g;
  1264.  
  1265. /**
  1266. * Converts `string` to a property path array.
  1267. *
  1268. * @private
  1269. * @param {string} string The string to convert.
  1270. * @returns {Array} Returns the property path array.
  1271. */
  1272. var stringToPath = memoizeCapped(function(string) {
  1273. var result = [];
  1274. if (string.charCodeAt(0) === 46 /* . */) {
  1275. result.push('');
  1276. }
  1277. string.replace(rePropName, function(match, number, quote, subString) {
  1278. result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
  1279. });
  1280. return result;
  1281. });
  1282.  
  1283. /**
  1284. * Converts `value` to a string. An empty string is returned for `null`
  1285. * and `undefined` values. The sign of `-0` is preserved.
  1286. *
  1287. * @static
  1288. * @memberOf _
  1289. * @since 4.0.0
  1290. * @category Lang
  1291. * @param {*} value The value to convert.
  1292. * @returns {string} Returns the converted string.
  1293. * @example
  1294. *
  1295. * _.toString(null);
  1296. * // => ''
  1297. *
  1298. * _.toString(-0);
  1299. * // => '-0'
  1300. *
  1301. * _.toString([1, 2, 3]);
  1302. * // => '1,2,3'
  1303. */
  1304. function toString(value) {
  1305. return value == null ? '' : baseToString(value);
  1306. }
  1307.  
  1308. /**
  1309. * Casts `value` to a path array if it's not one.
  1310. *
  1311. * @private
  1312. * @param {*} value The value to inspect.
  1313. * @param {Object} [object] The object to query keys on.
  1314. * @returns {Array} Returns the cast property path array.
  1315. */
  1316. function castPath(value, object) {
  1317. if (isArray(value)) {
  1318. return value;
  1319. }
  1320. return isKey(value, object) ? [value] : stringToPath(toString(value));
  1321. }
  1322.  
  1323. /** Used as references for various `Number` constants. */
  1324. var INFINITY = 1 / 0;
  1325.  
  1326. /**
  1327. * Converts `value` to a string key if it's not a string or symbol.
  1328. *
  1329. * @private
  1330. * @param {*} value The value to inspect.
  1331. * @returns {string|symbol} Returns the key.
  1332. */
  1333. function toKey(value) {
  1334. if (typeof value == 'string' || isSymbol(value)) {
  1335. return value;
  1336. }
  1337. var result = (value + '');
  1338. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  1339. }
  1340.  
  1341. /**
  1342. * The base implementation of `_.get` without support for default values.
  1343. *
  1344. * @private
  1345. * @param {Object} object The object to query.
  1346. * @param {Array|string} path The path of the property to get.
  1347. * @returns {*} Returns the resolved value.
  1348. */
  1349. function baseGet(object, path) {
  1350. path = castPath(path, object);
  1351.  
  1352. var index = 0,
  1353. length = path.length;
  1354.  
  1355. while (object != null && index < length) {
  1356. object = object[toKey(path[index++])];
  1357. }
  1358. return (index && index == length) ? object : undefined;
  1359. }
  1360.  
  1361. /**
  1362. * Gets the value at `path` of `object`. If the resolved value is
  1363. * `undefined`, the `defaultValue` is returned in its place.
  1364. *
  1365. * @static
  1366. * @memberOf _
  1367. * @since 3.7.0
  1368. * @category Object
  1369. * @param {Object} object The object to query.
  1370. * @param {Array|string} path The path of the property to get.
  1371. * @param {*} [defaultValue] The value returned for `undefined` resolved values.
  1372. * @returns {*} Returns the resolved value.
  1373. * @example
  1374. *
  1375. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  1376. *
  1377. * _.get(object, 'a[0].b.c');
  1378. * // => 3
  1379. *
  1380. * _.get(object, ['a', '0', 'b', 'c']);
  1381. * // => 3
  1382. *
  1383. * _.get(object, 'a.b.c', 'default');
  1384. * // => 'default'
  1385. */
  1386. function get(object, path, defaultValue) {
  1387. var result = object == null ? undefined : baseGet(object, path);
  1388. return result === undefined ? defaultValue : result;
  1389. }
  1390.  
  1391. /**
  1392. * The base implementation of `_.clamp` which doesn't coerce arguments.
  1393. *
  1394. * @private
  1395. * @param {number} number The number to clamp.
  1396. * @param {number} [lower] The lower bound.
  1397. * @param {number} upper The upper bound.
  1398. * @returns {number} Returns the clamped number.
  1399. */
  1400. function baseClamp(number, lower, upper) {
  1401. if (number === number) {
  1402. if (upper !== undefined) {
  1403. number = number <= upper ? number : upper;
  1404. }
  1405. if (lower !== undefined) {
  1406. number = number >= lower ? number : lower;
  1407. }
  1408. }
  1409. return number;
  1410. }
  1411.  
  1412. /**
  1413. * Clamps `number` within the inclusive `lower` and `upper` bounds.
  1414. *
  1415. * @static
  1416. * @memberOf _
  1417. * @since 4.0.0
  1418. * @category Number
  1419. * @param {number} number The number to clamp.
  1420. * @param {number} [lower] The lower bound.
  1421. * @param {number} upper The upper bound.
  1422. * @returns {number} Returns the clamped number.
  1423. * @example
  1424. *
  1425. * _.clamp(-10, -5, 5);
  1426. * // => -5
  1427. *
  1428. * _.clamp(10, -5, 5);
  1429. * // => 5
  1430. */
  1431. function clamp(number, lower, upper) {
  1432. if (upper === undefined) {
  1433. upper = lower;
  1434. lower = undefined;
  1435. }
  1436. if (upper !== undefined) {
  1437. upper = toNumber(upper);
  1438. upper = upper === upper ? upper : 0;
  1439. }
  1440. if (lower !== undefined) {
  1441. lower = toNumber(lower);
  1442. lower = lower === lower ? lower : 0;
  1443. }
  1444. return baseClamp(toNumber(number), lower, upper);
  1445. }
  1446.  
  1447. /**
  1448. * Gets the timestamp of the number of milliseconds that have elapsed since
  1449. * the Unix epoch (1 January 1970 00:00:00 UTC).
  1450. *
  1451. * @static
  1452. * @memberOf _
  1453. * @since 2.4.0
  1454. * @category Date
  1455. * @returns {number} Returns the timestamp.
  1456. * @example
  1457. *
  1458. * _.defer(function(stamp) {
  1459. * console.log(_.now() - stamp);
  1460. * }, _.now());
  1461. * // => Logs the number of milliseconds it took for the deferred invocation.
  1462. */
  1463. var now = function() {
  1464. return root.Date.now();
  1465. };
  1466.  
  1467. /** Error message constants. */
  1468. var FUNC_ERROR_TEXT$1 = 'Expected a function';
  1469.  
  1470. /* Built-in method references for those with the same name as other `lodash` methods. */
  1471. var nativeMax = Math.max,
  1472. nativeMin = Math.min;
  1473.  
  1474. /**
  1475. * Creates a debounced function that delays invoking `func` until after `wait`
  1476. * milliseconds have elapsed since the last time the debounced function was
  1477. * invoked. The debounced function comes with a `cancel` method to cancel
  1478. * delayed `func` invocations and a `flush` method to immediately invoke them.
  1479. * Provide `options` to indicate whether `func` should be invoked on the
  1480. * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
  1481. * with the last arguments provided to the debounced function. Subsequent
  1482. * calls to the debounced function return the result of the last `func`
  1483. * invocation.
  1484. *
  1485. * **Note:** If `leading` and `trailing` options are `true`, `func` is
  1486. * invoked on the trailing edge of the timeout only if the debounced function
  1487. * is invoked more than once during the `wait` timeout.
  1488. *
  1489. * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
  1490. * until to the next tick, similar to `setTimeout` with a timeout of `0`.
  1491. *
  1492. * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
  1493. * for details over the differences between `_.debounce` and `_.throttle`.
  1494. *
  1495. * @static
  1496. * @memberOf _
  1497. * @since 0.1.0
  1498. * @category Function
  1499. * @param {Function} func The function to debounce.
  1500. * @param {number} [wait=0] The number of milliseconds to delay.
  1501. * @param {Object} [options={}] The options object.
  1502. * @param {boolean} [options.leading=false]
  1503. * Specify invoking on the leading edge of the timeout.
  1504. * @param {number} [options.maxWait]
  1505. * The maximum time `func` is allowed to be delayed before it's invoked.
  1506. * @param {boolean} [options.trailing=true]
  1507. * Specify invoking on the trailing edge of the timeout.
  1508. * @returns {Function} Returns the new debounced function.
  1509. * @example
  1510. *
  1511. * // Avoid costly calculations while the window size is in flux.
  1512. * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
  1513. *
  1514. * // Invoke `sendMail` when clicked, debouncing subsequent calls.
  1515. * jQuery(element).on('click', _.debounce(sendMail, 300, {
  1516. * 'leading': true,
  1517. * 'trailing': false
  1518. * }));
  1519. *
  1520. * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
  1521. * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
  1522. * var source = new EventSource('/stream');
  1523. * jQuery(source).on('message', debounced);
  1524. *
  1525. * // Cancel the trailing debounced invocation.
  1526. * jQuery(window).on('popstate', debounced.cancel);
  1527. */
  1528. function debounce(func, wait, options) {
  1529. var lastArgs,
  1530. lastThis,
  1531. maxWait,
  1532. result,
  1533. timerId,
  1534. lastCallTime,
  1535. lastInvokeTime = 0,
  1536. leading = false,
  1537. maxing = false,
  1538. trailing = true;
  1539.  
  1540. if (typeof func != 'function') {
  1541. throw new TypeError(FUNC_ERROR_TEXT$1);
  1542. }
  1543. wait = toNumber(wait) || 0;
  1544. if (isObject(options)) {
  1545. leading = !!options.leading;
  1546. maxing = 'maxWait' in options;
  1547. maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
  1548. trailing = 'trailing' in options ? !!options.trailing : trailing;
  1549. }
  1550.  
  1551. function invokeFunc(time) {
  1552. var args = lastArgs,
  1553. thisArg = lastThis;
  1554.  
  1555. lastArgs = lastThis = undefined;
  1556. lastInvokeTime = time;
  1557. result = func.apply(thisArg, args);
  1558. return result;
  1559. }
  1560.  
  1561. function leadingEdge(time) {
  1562. // Reset any `maxWait` timer.
  1563. lastInvokeTime = time;
  1564. // Start the timer for the trailing edge.
  1565. timerId = setTimeout(timerExpired, wait);
  1566. // Invoke the leading edge.
  1567. return leading ? invokeFunc(time) : result;
  1568. }
  1569.  
  1570. function remainingWait(time) {
  1571. var timeSinceLastCall = time - lastCallTime,
  1572. timeSinceLastInvoke = time - lastInvokeTime,
  1573. timeWaiting = wait - timeSinceLastCall;
  1574.  
  1575. return maxing
  1576. ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
  1577. : timeWaiting;
  1578. }
  1579.  
  1580. function shouldInvoke(time) {
  1581. var timeSinceLastCall = time - lastCallTime,
  1582. timeSinceLastInvoke = time - lastInvokeTime;
  1583.  
  1584. // Either this is the first call, activity has stopped and we're at the
  1585. // trailing edge, the system time has gone backwards and we're treating
  1586. // it as the trailing edge, or we've hit the `maxWait` limit.
  1587. return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
  1588. (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
  1589. }
  1590.  
  1591. function timerExpired() {
  1592. var time = now();
  1593. if (shouldInvoke(time)) {
  1594. return trailingEdge(time);
  1595. }
  1596. // Restart the timer.
  1597. timerId = setTimeout(timerExpired, remainingWait(time));
  1598. }
  1599.  
  1600. function trailingEdge(time) {
  1601. timerId = undefined;
  1602.  
  1603. // Only invoke if we have `lastArgs` which means `func` has been
  1604. // debounced at least once.
  1605. if (trailing && lastArgs) {
  1606. return invokeFunc(time);
  1607. }
  1608. lastArgs = lastThis = undefined;
  1609. return result;
  1610. }
  1611.  
  1612. function cancel() {
  1613. if (timerId !== undefined) {
  1614. clearTimeout(timerId);
  1615. }
  1616. lastInvokeTime = 0;
  1617. lastArgs = lastCallTime = lastThis = timerId = undefined;
  1618. }
  1619.  
  1620. function flush() {
  1621. return timerId === undefined ? result : trailingEdge(now());
  1622. }
  1623.  
  1624. function debounced() {
  1625. var time = now(),
  1626. isInvoking = shouldInvoke(time);
  1627.  
  1628. lastArgs = arguments;
  1629. lastThis = this;
  1630. lastCallTime = time;
  1631.  
  1632. if (isInvoking) {
  1633. if (timerId === undefined) {
  1634. return leadingEdge(lastCallTime);
  1635. }
  1636. if (maxing) {
  1637. // Handle invocations in a tight loop.
  1638. clearTimeout(timerId);
  1639. timerId = setTimeout(timerExpired, wait);
  1640. return invokeFunc(lastCallTime);
  1641. }
  1642. }
  1643. if (timerId === undefined) {
  1644. timerId = setTimeout(timerExpired, wait);
  1645. }
  1646. return result;
  1647. }
  1648. debounced.cancel = cancel;
  1649. debounced.flush = flush;
  1650. return debounced;
  1651. }
  1652.  
  1653. /**
  1654. * Checks if `value` is `null` or `undefined`.
  1655. *
  1656. * @static
  1657. * @memberOf _
  1658. * @since 4.0.0
  1659. * @category Lang
  1660. * @param {*} value The value to check.
  1661. * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
  1662. * @example
  1663. *
  1664. * _.isNil(null);
  1665. * // => true
  1666. *
  1667. * _.isNil(void 0);
  1668. * // => true
  1669. *
  1670. * _.isNil(NaN);
  1671. * // => false
  1672. */
  1673. function isNil(value) {
  1674. return value == null;
  1675. }
  1676.  
  1677. /**
  1678. * The base implementation of `_.set`.
  1679. *
  1680. * @private
  1681. * @param {Object} object The object to modify.
  1682. * @param {Array|string} path The path of the property to set.
  1683. * @param {*} value The value to set.
  1684. * @param {Function} [customizer] The function to customize path creation.
  1685. * @returns {Object} Returns `object`.
  1686. */
  1687. function baseSet(object, path, value, customizer) {
  1688. if (!isObject(object)) {
  1689. return object;
  1690. }
  1691. path = castPath(path, object);
  1692.  
  1693. var index = -1,
  1694. length = path.length,
  1695. lastIndex = length - 1,
  1696. nested = object;
  1697.  
  1698. while (nested != null && ++index < length) {
  1699. var key = toKey(path[index]),
  1700. newValue = value;
  1701.  
  1702. if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
  1703. return object;
  1704. }
  1705.  
  1706. if (index != lastIndex) {
  1707. var objValue = nested[key];
  1708. newValue = customizer ? customizer(objValue, key, nested) : undefined;
  1709. if (newValue === undefined) {
  1710. newValue = isObject(objValue)
  1711. ? objValue
  1712. : (isIndex(path[index + 1]) ? [] : {});
  1713. }
  1714. }
  1715. assignValue(nested, key, newValue);
  1716. nested = nested[key];
  1717. }
  1718. return object;
  1719. }
  1720.  
  1721. /**
  1722. * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
  1723. * it's created. Arrays are created for missing index properties while objects
  1724. * are created for all other missing properties. Use `_.setWith` to customize
  1725. * `path` creation.
  1726. *
  1727. * **Note:** This method mutates `object`.
  1728. *
  1729. * @static
  1730. * @memberOf _
  1731. * @since 3.7.0
  1732. * @category Object
  1733. * @param {Object} object The object to modify.
  1734. * @param {Array|string} path The path of the property to set.
  1735. * @param {*} value The value to set.
  1736. * @returns {Object} Returns `object`.
  1737. * @example
  1738. *
  1739. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  1740. *
  1741. * _.set(object, 'a[0].b.c', 4);
  1742. * console.log(object.a[0].b.c);
  1743. * // => 4
  1744. *
  1745. * _.set(object, ['x', '0', 'y', 'z'], 5);
  1746. * console.log(object.x[0].y.z);
  1747. * // => 5
  1748. */
  1749. function set(object, path, value) {
  1750. return object == null ? object : baseSet(object, path, value);
  1751. }
  1752.  
  1753. /** Error message constants. */
  1754. var FUNC_ERROR_TEXT = 'Expected a function';
  1755.  
  1756. /**
  1757. * Creates a throttled function that only invokes `func` at most once per
  1758. * every `wait` milliseconds. The throttled function comes with a `cancel`
  1759. * method to cancel delayed `func` invocations and a `flush` method to
  1760. * immediately invoke them. Provide `options` to indicate whether `func`
  1761. * should be invoked on the leading and/or trailing edge of the `wait`
  1762. * timeout. The `func` is invoked with the last arguments provided to the
  1763. * throttled function. Subsequent calls to the throttled function return the
  1764. * result of the last `func` invocation.
  1765. *
  1766. * **Note:** If `leading` and `trailing` options are `true`, `func` is
  1767. * invoked on the trailing edge of the timeout only if the throttled function
  1768. * is invoked more than once during the `wait` timeout.
  1769. *
  1770. * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
  1771. * until to the next tick, similar to `setTimeout` with a timeout of `0`.
  1772. *
  1773. * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
  1774. * for details over the differences between `_.throttle` and `_.debounce`.
  1775. *
  1776. * @static
  1777. * @memberOf _
  1778. * @since 0.1.0
  1779. * @category Function
  1780. * @param {Function} func The function to throttle.
  1781. * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
  1782. * @param {Object} [options={}] The options object.
  1783. * @param {boolean} [options.leading=true]
  1784. * Specify invoking on the leading edge of the timeout.
  1785. * @param {boolean} [options.trailing=true]
  1786. * Specify invoking on the trailing edge of the timeout.
  1787. * @returns {Function} Returns the new throttled function.
  1788. * @example
  1789. *
  1790. * // Avoid excessively updating the position while scrolling.
  1791. * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
  1792. *
  1793. * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
  1794. * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
  1795. * jQuery(element).on('click', throttled);
  1796. *
  1797. * // Cancel the trailing throttled invocation.
  1798. * jQuery(window).on('popstate', throttled.cancel);
  1799. */
  1800. function throttle(func, wait, options) {
  1801. var leading = true,
  1802. trailing = true;
  1803.  
  1804. if (typeof func != 'function') {
  1805. throw new TypeError(FUNC_ERROR_TEXT);
  1806. }
  1807. if (isObject(options)) {
  1808. leading = 'leading' in options ? !!options.leading : leading;
  1809. trailing = 'trailing' in options ? !!options.trailing : trailing;
  1810. }
  1811. return debounce(func, wait, {
  1812. 'leading': leading,
  1813. 'maxWait': wait,
  1814. 'trailing': trailing
  1815. });
  1816. }
  1817.  
  1818. function createTest(target) {
  1819. return (test) => typeof test === "function" ? test() : typeof test === "string" ? target.includes(test) || test === "*" : test.test(target);
  1820. }
  1821. class Runtime {
  1822. constructor() {
  1823. this.getTopLocationHref = memoize(
  1824. async () => {
  1825. if (parent === self)
  1826. return window.location.href;
  1827. return new Promise((resolve) => {
  1828. window.addEventListener("message", function once(e) {
  1829. var _a;
  1830. if (((_a = e.data) == null ? void 0 : _a.key) === "getLocationHref") {
  1831. window.removeEventListener("message", once);
  1832. resolve(e.data.url);
  1833. }
  1834. });
  1835. parent.postMessage({ key: "getLocationHref" }, "*");
  1836. });
  1837. },
  1838. () => window.location.href
  1839. );
  1840. this.getAnimeScope = memoize(
  1841. async () => {
  1842. var _a, _b;
  1843. if (parent === self)
  1844. return ((_b = (_a = this.getActiveRegister().search) == null ? void 0 : _a.getAnimeScope) == null ? void 0 : _b.call(_a)) || "";
  1845. return new Promise((resolve) => {
  1846. window.addEventListener("message", function once(e) {
  1847. var _a2;
  1848. if (((_a2 = e.data) == null ? void 0 : _a2.key) === "getAnimeScope") {
  1849. window.removeEventListener("message", once);
  1850. resolve(e.data.animeScope);
  1851. }
  1852. });
  1853. parent.postMessage({ key: "getAnimeScope" }, "*");
  1854. });
  1855. },
  1856. () => window.location.href
  1857. );
  1858. this.list = [
  1859. {
  1860. domains: [],
  1861. opts: [],
  1862. search: {
  1863. name: "[BT]\u871C\u67D1\u8BA1\u5212",
  1864. search: (name) => `https://mikanani.me/Home/Search?searchstr=${name}`
  1865. }
  1866. }
  1867. ];
  1868. if (parent === self) {
  1869. window.addEventListener("message", (e) => {
  1870. var _a, _b;
  1871. if (((_a = e.data) == null ? void 0 : _a.key) === "getLocationHref") {
  1872. (_b = e.source) == null ? void 0 : _b.postMessage(
  1873. { key: "getLocationHref", url: location.href },
  1874. { targetOrigin: "*" }
  1875. );
  1876. }
  1877. });
  1878. window.addEventListener("message", (e) => {
  1879. var _a, _b, _c, _d;
  1880. if (((_a = e.data) == null ? void 0 : _a.key) === "getAnimeScope") {
  1881. (_d = e.source) == null ? void 0 : _d.postMessage(
  1882. {
  1883. key: "getAnimeScope",
  1884. animeScope: ((_c = (_b = this.getActiveRegister().search) == null ? void 0 : _b.getAnimeScope) == null ? void 0 : _c.call(_b)) || ""
  1885. },
  1886. { targetOrigin: "*" }
  1887. );
  1888. }
  1889. });
  1890. }
  1891. }
  1892. register(item) {
  1893. this.list.push(item);
  1894. }
  1895. async getSearchActions() {
  1896. const isInIframe = parent !== self;
  1897. const searchs = this.list.map((o) => o.search).filter(Boolean).filter((o) => !(isInIframe && o.disabledInIframe));
  1898. const register = this.getActiveRegister();
  1899. const info = await this.getCurrentVideoNameAndEpisode();
  1900. if (!(info == null ? void 0 : info.name))
  1901. return [];
  1902. let name = info.name;
  1903. return searchs.filter((search) => search !== register.search && search.search).map((search) => ({
  1904. name: search.name,
  1905. search: () => {
  1906. const url = search.search(encodeURIComponent(name));
  1907. if (!url)
  1908. return;
  1909. if (isInIframe)
  1910. parent.postMessage({ key: "openLink", url }, "*");
  1911. else
  1912. window.open(url);
  1913. }
  1914. }));
  1915. }
  1916. async getCurrentVideoNameAndEpisode() {
  1917. var _a, _b, _c, _d;
  1918. const register = this.getActiveRegister();
  1919. if (!((_a = register.search) == null ? void 0 : _a.getSearchName))
  1920. return;
  1921. let rawName = await register.search.getSearchName() || "";
  1922. let episode = await ((_c = (_b = register.search).getEpisode) == null ? void 0 : _c.call(_b)) || "";
  1923. let name = rawName.replace(/第.季/, "").replace(/[<>《》''‘’""“”\[\]]/g, "").trim();
  1924. episode = ((_d = episode.match(/([0-9.]+)[集话]/)) == null ? void 0 : _d[1].replace(/^0+/, "")) || episode.replace(/[第集话()()]/g, "") || episode;
  1925. return { name, rawName, episode };
  1926. }
  1927. getActiveRegister() {
  1928. const registers = this.list.filter(
  1929. ({ domains }) => domains.some(createTest(location.origin))
  1930. );
  1931. if (registers.length !== 1) {
  1932. console.log("[agefans-enhance]", window.location, registers);
  1933. throw new Error(`\u6FC0\u6D3B\u7684\u57DF\u540D\u5E94\u8BE5\u5C31\u4E00\u4E2A`);
  1934. }
  1935. console.log("[agefans-enhance]", "\u6FC0\u6D3B\u7684Register", registers[0]);
  1936. return registers[0];
  1937. }
  1938. getActiveOpts() {
  1939. const register = this.getActiveRegister();
  1940. return register.opts.filter(({ test }) => {
  1941. const testArr = Array.isArray(test) ? test : [test];
  1942. return testArr.some(createTest(location.pathname + location.search));
  1943. });
  1944. }
  1945. run() {
  1946. let setupList = [];
  1947. let runList = [];
  1948. const opts = this.getActiveOpts();
  1949. opts.forEach((opt) => {
  1950. const { run, setup, runInIframe } = opt;
  1951. let needRun = runInIframe ? parent !== self : parent === self;
  1952. if (needRun) {
  1953. console.log("[agefans-enhance]", "\u6FC0\u6D3B\u7684opt", opt);
  1954. setup && setupList.push(setup);
  1955. runList.push(run);
  1956. }
  1957. });
  1958. const init = () => {
  1959. setupList.forEach((setup) => setup());
  1960. runList.forEach((run) => run());
  1961. };
  1962. if (document.readyState !== "loading") {
  1963. init();
  1964. } else {
  1965. window.addEventListener("DOMContentLoaded", init);
  1966. }
  1967. }
  1968. }
  1969. const runtime = new Runtime();
  1970.  
  1971. var css$g = "#k-player-message {\n z-index: 999;\n position: absolute;\n left: 20px;\n bottom: 60px;\n}\n#k-player-message .k-player-message-item {\n display: block;\n width: max-content;\n padding: 8px 16px;\n background: var(--k-player-background);\n border-radius: 4px;\n color: white;\n font-size: 14px;\n white-space: nowrap;\n overflow: hidden;\n box-sizing: border-box;\n margin-top: 4px;\n}\n#k-player-message .k-player-message-item:hover {\n background: var(--k-player-background-highlight);\n transition: all 0.3s;\n}";
  1972. injectCss(css$g,{});
  1973.  
  1974. class Message {
  1975. constructor(selector) {
  1976. this.MaxLength = 5;
  1977. this.$message = $('<div id="k-player-message">');
  1978. this.$message.appendTo($(selector));
  1979. }
  1980. info(message, ms = 2e3) {
  1981. if (this.$message.children().length > this.MaxLength) {
  1982. this.$message.children().first().remove();
  1983. }
  1984. return new Promise((resolve) => {
  1985. $(`<div class="k-player-message-item"></div>`).append(message).hide().appendTo(this.$message).show(150).delay(ms).hide(150, function() {
  1986. $(this).remove();
  1987. resolve();
  1988. });
  1989. });
  1990. }
  1991. destroy() {
  1992. this.$message.empty();
  1993. }
  1994. }
  1995.  
  1996. function parseTime(time = 0) {
  1997. time = Math.round(time);
  1998. return `${Math.floor(time / 60).toString().padStart(2, "0")}:${(time % 60).toString().padStart(2, "0")}`;
  1999. }
  2000.  
  2001. function createStorage$1(storage) {
  2002. function getItem(key, defaultValue) {
  2003. try {
  2004. const value = storage.getItem(key);
  2005. if (value)
  2006. return JSON.parse(value);
  2007. return defaultValue;
  2008. } catch (error) {
  2009. return defaultValue;
  2010. }
  2011. }
  2012. return {
  2013. getItem,
  2014. setItem(key, value) {
  2015. storage.setItem(key, JSON.stringify(value));
  2016. },
  2017. removeItem: storage.removeItem.bind(storage),
  2018. clear: storage.clear.bind(storage)
  2019. };
  2020. }
  2021. const session = createStorage$1(window.sessionStorage);
  2022. const local = createStorage$1(window.localStorage);
  2023. let gm;
  2024. try {
  2025. let getItem = function(key, defaultValue) {
  2026. var _a, _b;
  2027. try {
  2028. return (_b = (_a = GM_getValue(key)) != null ? _a : local.getItem(key)) != null ? _b : defaultValue;
  2029. } catch (error) {
  2030. return defaultValue;
  2031. }
  2032. };
  2033. if (typeof GM_getValue === "undefined")
  2034. throw new Error("GM_getValue is not defined");
  2035. if (typeof GM_setValue === "undefined")
  2036. throw new Error("GM_setValue is not defined");
  2037. gm = {
  2038. getItem,
  2039. setItem(key, value) {
  2040. local.setItem(key, value);
  2041. GM_setValue(key, value);
  2042. }
  2043. };
  2044. } catch (error) {
  2045. gm = local;
  2046. }
  2047.  
  2048. var css$f = ".k-popover {\n position: relative;\n}\n.k-popover-overlay {\n position: absolute;\n display: none;\n bottom: 100%;\n left: 50%;\n transform: translateX(-50%);\n z-index: 100;\n padding-bottom: 20px;\n}\n.k-popover-content {\n background: var(--k-player-background);\n border-radius: 4px;\n overflow-x: hidden;\n overflow-y: auto;\n cursor: initial;\n max-height: var(--k-player-popover-max-height, 70vh);\n}\n.k-popover-content::-webkit-scrollbar {\n display: none;\n}";
  2049. injectCss(css$f,{});
  2050.  
  2051. function popover(opts) {
  2052. const { target, overlay, trigger = "hover", onVisibleChange } = opts;
  2053. const $target = $(target);
  2054. const $content = $(
  2055. `<div class="k-popover-overlay"><div class="k-popover-content"></div></div>`
  2056. );
  2057. $content.on("click", (e) => e.stopPropagation());
  2058. $content.find(".k-popover-content").append(overlay);
  2059. $target.addClass("k-popover");
  2060. $target.append($content);
  2061. let isActive = false;
  2062. let timeId;
  2063. const toggle = (visible, delay) => {
  2064. clearTimeout(timeId);
  2065. timeId = window.setTimeout(() => {
  2066. if (visible) {
  2067. isActive = true;
  2068. $content.fadeIn("fast");
  2069. $target.addClass("k-popover-active");
  2070. onVisibleChange == null ? void 0 : onVisibleChange(true);
  2071. } else {
  2072. isActive = false;
  2073. $content.fadeOut("fast");
  2074. $target.removeClass("k-popover-active");
  2075. onVisibleChange == null ? void 0 : onVisibleChange(false);
  2076. }
  2077. }, delay);
  2078. };
  2079. if (trigger === "click") {
  2080. $target.on("click", () => {
  2081. toggle(!isActive);
  2082. });
  2083. window.addEventListener(
  2084. "click",
  2085. (e) => {
  2086. if (!$target[0].contains(e.target)) {
  2087. if (isActive)
  2088. toggle(false);
  2089. }
  2090. },
  2091. { capture: true }
  2092. );
  2093. } else {
  2094. $target.on("mouseenter", () => {
  2095. toggle(true, 100);
  2096. });
  2097. $target.on("mouseleave", () => {
  2098. toggle(false, 100);
  2099. });
  2100. }
  2101. return $target;
  2102. }
  2103.  
  2104. const isMac$1 = /macintosh|mac os x/i.test(navigator.userAgent);
  2105. const KeyMap = {
  2106. ArrowUp: "\u2191",
  2107. ArrowDown: "\u2193",
  2108. ArrowLeft: "\u2190",
  2109. ArrowRight: "\u2192",
  2110. ctrl: "Ctrl",
  2111. alt: "Alt",
  2112. shift: "Shift"
  2113. };
  2114. const MacKeyMap = {
  2115. ctrl: "\u2303",
  2116. meta: "\u2318",
  2117. alt: "\u2325",
  2118. shift: "\u21E7"
  2119. };
  2120. if (isMac$1) {
  2121. Object.assign(KeyMap, MacKeyMap);
  2122. }
  2123. function renderKey(key) {
  2124. Object.entries(KeyMap).forEach(([k, v]) => {
  2125. key = key.replace(new RegExp(k, "i"), v);
  2126. });
  2127. return key;
  2128. }
  2129.  
  2130. var Commands$1 = /* @__PURE__ */ ((Commands2) => {
  2131. Commands2["forward5"] = "forward5";
  2132. Commands2["backward5"] = "backward5";
  2133. Commands2["forward30"] = "forward30";
  2134. Commands2["backward30"] = "backward30";
  2135. Commands2["forward60"] = "forward60";
  2136. Commands2["backward60"] = "backward60";
  2137. Commands2["forward90"] = "forward90";
  2138. Commands2["backward90"] = "backward90";
  2139. Commands2["togglePlay"] = "togglePlay";
  2140. Commands2["next"] = "next";
  2141. Commands2["prev"] = "prev";
  2142. Commands2["toggleWidescreen"] = "toggleWidescreen";
  2143. Commands2["Escape"] = "Escape";
  2144. Commands2["restoreSpeed"] = "restoreSpeed";
  2145. Commands2["increaseSpeed"] = "increaseSpeed";
  2146. Commands2["decreaseSpeed"] = "decreaseSpeed";
  2147. Commands2["temporaryIncreaseSpeed"] = "temporaryIncreaseSpeed";
  2148. Commands2["togglePIP"] = "togglePIP";
  2149. Commands2["internal"] = "internal";
  2150. Commands2["help"] = "help";
  2151. Commands2["prevFrame"] = "prevFrame";
  2152. Commands2["nextFrame"] = "nextFrame";
  2153. Commands2["toggleFullscreen"] = "toggleFullscreen";
  2154. Commands2["decreaseVolume"] = "decreaseVolume";
  2155. Commands2["increaseVolume"] = "increaseVolume";
  2156. Commands2["toggleMute"] = "toggleMute";
  2157. Commands2["forwardCustom"] = "forwardCustom";
  2158. Commands2["backwardCustom"] = "backwardCustom";
  2159. Commands2["recordCustomSeekTime"] = "recordCustomSeekTime";
  2160. return Commands2;
  2161. })(Commands$1 || {});
  2162.  
  2163. var __defProp$4 = Object.defineProperty;
  2164. var __defProps$3 = Object.defineProperties;
  2165. var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
  2166. var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
  2167. var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
  2168. var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
  2169. var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
  2170. var __spreadValues$4 = (a, b) => {
  2171. for (var prop in b || (b = {}))
  2172. if (__hasOwnProp$4.call(b, prop))
  2173. __defNormalProp$4(a, prop, b[prop]);
  2174. if (__getOwnPropSymbols$4)
  2175. for (var prop of __getOwnPropSymbols$4(b)) {
  2176. if (__propIsEnum$4.call(b, prop))
  2177. __defNormalProp$4(a, prop, b[prop]);
  2178. }
  2179. return a;
  2180. };
  2181. var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
  2182. const isMac = /macintosh|mac os x/i.test(navigator.userAgent);
  2183. const DefaultKeyBindings = [
  2184. { command: Commands$1.togglePlay, key: "Space", description: "\u64AD\u653E/\u6682\u505C" },
  2185. {
  2186. command: Commands$1.backward5,
  2187. key: "ArrowLeft",
  2188. description: "\u6B65\u90005s"
  2189. },
  2190. {
  2191. command: Commands$1.forward5,
  2192. key: "ArrowRight",
  2193. description: "\u6B65\u8FDB5s"
  2194. },
  2195. {
  2196. command: Commands$1.backward30,
  2197. key: "shift ArrowLeft",
  2198. description: "\u6B65\u900030s"
  2199. },
  2200. {
  2201. command: Commands$1.forward30,
  2202. key: "shift ArrowRight",
  2203. description: "\u6B65\u8FDB30s"
  2204. },
  2205. {
  2206. command: Commands$1.backward60,
  2207. key: "alt ArrowLeft",
  2208. description: "\u6B65\u900060s"
  2209. },
  2210. {
  2211. command: Commands$1.forward60,
  2212. key: "alt ArrowRight",
  2213. description: "\u6B65\u8FDB60s"
  2214. },
  2215. {
  2216. command: Commands$1.backward90,
  2217. key: "ctrl ArrowLeft",
  2218. mac: "meta ArrowLeft",
  2219. description: "\u6B65\u900090s"
  2220. },
  2221. {
  2222. command: Commands$1.forward90,
  2223. key: "ctrl ArrowRight",
  2224. mac: "meta ArrowRight",
  2225. description: "\u6B65\u8FDB90s"
  2226. },
  2227. {
  2228. command: Commands$1.backwardCustom,
  2229. key: "shift J",
  2230. description: "\u6B65\u9000[\u8BB0\u5FC6\u65F6\u95F4]"
  2231. },
  2232. { command: Commands$1.forwardCustom, key: "J", description: "\u6B65\u8FDB[\u8BB0\u5FC6\u65F6\u95F4]" },
  2233. {
  2234. command: Commands$1.recordCustomSeekTime,
  2235. key: "K",
  2236. description: "\u8BBE\u7F6E[\u8BB0\u5FC6\u65F6\u95F4]"
  2237. },
  2238. { command: Commands$1.prevFrame, key: "", description: "\u4E0A\u4E00\u5E27" },
  2239. { command: Commands$1.nextFrame, key: "", description: "\u4E0B\u4E00\u5E27" },
  2240. { command: Commands$1.prev, key: "P", description: "\u4E0A\u4E00\u96C6" },
  2241. { command: Commands$1.next, key: "N", description: "\u4E0B\u4E00\u96C6" },
  2242. { command: Commands$1.toggleWidescreen, key: "W", description: "\u5BBD\u5C4F" },
  2243. {
  2244. command: Commands$1.toggleFullscreen,
  2245. key: "F",
  2246. description: "\u5168\u5C4F"
  2247. },
  2248. {
  2249. command: Commands$1.Escape,
  2250. key: "Escape",
  2251. editable: false,
  2252. description: "\u9000\u51FA\u5168\u5C4F/\u5BBD\u5C4F"
  2253. },
  2254. { command: Commands$1.restoreSpeed, key: "Z", description: "\u539F\u901F\u64AD\u653E" },
  2255. { command: Commands$1.decreaseSpeed, key: "X", description: "\u51CF\u901F\u64AD\u653E" },
  2256. { command: Commands$1.increaseSpeed, key: "C", description: "\u52A0\u901F\u64AD\u653E" },
  2257. {
  2258. command: Commands$1.temporaryIncreaseSpeed,
  2259. key: "V",
  2260. description: "\u957F\u6309\u52A0\u901F"
  2261. },
  2262. { command: Commands$1.togglePIP, key: "I", description: "\u753B\u4E2D\u753B" },
  2263. {
  2264. command: Commands$1.increaseVolume,
  2265. key: "ArrowUp",
  2266. description: "\u589E\u5927\u97F3\u91CF"
  2267. },
  2268. {
  2269. command: Commands$1.decreaseVolume,
  2270. key: "ArrowDown",
  2271. description: "\u51CF\u5C0F\u97F3\u91CF"
  2272. },
  2273. {
  2274. command: Commands$1.toggleMute,
  2275. key: "M",
  2276. description: "\u5207\u6362\u9759\u97F3"
  2277. },
  2278. {
  2279. command: Commands$1.internal,
  2280. key: "?",
  2281. editable: false,
  2282. description: "\u663E\u793A\u5E2E\u52A9"
  2283. }
  2284. ];
  2285. class KeyBindings {
  2286. constructor() {
  2287. this.storageKey = "user-custom-keybindings";
  2288. this.listener = [];
  2289. }
  2290. getCustomKeyBindings() {
  2291. return gm.getItem(this.storageKey, []);
  2292. }
  2293. setCustomKeyBindings(keyBindings) {
  2294. gm.setItem(this.storageKey, keyBindings);
  2295. }
  2296. registerKeyBinding(keyBinding) {
  2297. DefaultKeyBindings.push(keyBinding);
  2298. this.notify();
  2299. }
  2300. setKeyBinding(command, key) {
  2301. let customKeyBindings = this.getCustomKeyBindings();
  2302. customKeyBindings = customKeyBindings.filter((o) => o.command !== command);
  2303. if (key) {
  2304. customKeyBindings.push({ command, key });
  2305. }
  2306. this.setCustomKeyBindings(customKeyBindings);
  2307. this.notify();
  2308. }
  2309. getKeyBindings() {
  2310. const customKeyBindings = this.getCustomKeyBindings();
  2311. return DefaultKeyBindings.map((keyBinding) => {
  2312. const customKeyBinding = customKeyBindings.find(
  2313. (o) => o.command === keyBinding.command
  2314. );
  2315. const nextKeyBinding = __spreadProps$3(__spreadValues$4({}, keyBinding), { originKey: "", customKey: "" });
  2316. if (isMac && nextKeyBinding.mac) {
  2317. nextKeyBinding.key = nextKeyBinding.mac;
  2318. }
  2319. nextKeyBinding.originKey = nextKeyBinding.key;
  2320. if (customKeyBinding) {
  2321. nextKeyBinding.key = customKeyBinding.key;
  2322. nextKeyBinding.customKey = customKeyBinding.key;
  2323. }
  2324. return nextKeyBinding;
  2325. });
  2326. }
  2327. getKeyBinding(command) {
  2328. const keyBindings = this.getKeyBindings();
  2329. return keyBindings.find((o) => o.command === command);
  2330. }
  2331. getCommand(key) {
  2332. var _a;
  2333. if (!key)
  2334. return;
  2335. const keyBindings = this.getKeyBindings();
  2336. return (_a = keyBindings.find((o) => o.key === key)) == null ? void 0 : _a.command;
  2337. }
  2338. subscribe(cb) {
  2339. this.listener.push(cb);
  2340. return () => {
  2341. this.listener = this.listener.filter((fn) => fn !== cb);
  2342. };
  2343. }
  2344. notify() {
  2345. this.listener.forEach((fn) => fn());
  2346. }
  2347. }
  2348.  
  2349. function normalizeKeyEvent(e) {
  2350. const SPECIAL_KEY_EN = "`-=[]\\;',./~!@#$%^&*()_+{}|:\"<>?".split("");
  2351. const SPECIAL_KEY_ZH = "\xB7-=\u3010\u3011\u3001\uFF1B\u2018\uFF0C\u3002/\uFF5E\uFF01@#\xA5%\u2026&*\uFF08\uFF09\u2014+\u300C\u300D\uFF5C\uFF1A\u201C\u300A\u300B\uFF1F".split("");
  2352. let key = e.key;
  2353. if (e.code === "Space") {
  2354. key = "Space";
  2355. }
  2356. if (/^[a-z]$/.test(key)) {
  2357. key = key.toUpperCase();
  2358. } else if (SPECIAL_KEY_ZH.includes(key)) {
  2359. key = SPECIAL_KEY_EN[SPECIAL_KEY_ZH.indexOf(key)];
  2360. }
  2361. let keyArr = [];
  2362. e.ctrlKey && keyArr.push("ctrl");
  2363. e.metaKey && keyArr.push("meta");
  2364. e.shiftKey && !SPECIAL_KEY_EN.includes(key) && keyArr.push("shift");
  2365. e.altKey && keyArr.push("alt");
  2366. if (!/Control|Meta|Shift|Alt/i.test(key))
  2367. keyArr.push(key);
  2368. keyArr = [...new Set(keyArr)];
  2369. return keyArr.join(" ");
  2370. }
  2371.  
  2372. const _Shortcuts = class {
  2373. constructor(player) {
  2374. this.player = player;
  2375. this.handleKeyEvent = (e) => {
  2376. var _a;
  2377. if (/input|textarea|select/i.test((_a = document.activeElement) == null ? void 0 : _a.tagName))
  2378. return;
  2379. const key = normalizeKeyEvent(e);
  2380. const command = _Shortcuts.keyBindings.getCommand(key);
  2381. if (command) {
  2382. e.preventDefault();
  2383. this.invoke(command, e);
  2384. }
  2385. };
  2386. player.shortcuts = this;
  2387. window.addEventListener("keydown", this.handleKeyEvent);
  2388. window.addEventListener("keyup", this.handleKeyEvent);
  2389. }
  2390. static registerCommand(command, keydown, keyup) {
  2391. this.commands.push({ command, keydown, keyup });
  2392. }
  2393. invoke(command, e) {
  2394. var _a;
  2395. const cmd = _Shortcuts.commands.find((cmd2) => cmd2.command === command);
  2396. if (cmd) {
  2397. const type = e.type === "keydown" ? "keydown" : "keyup";
  2398. (_a = cmd[type]) == null ? void 0 : _a.call(this.player, e);
  2399. }
  2400. }
  2401. };
  2402. let Shortcuts = _Shortcuts;
  2403. Shortcuts.Commands = Commands$1;
  2404. Shortcuts.keyBindings = new KeyBindings();
  2405. Shortcuts.commands = [];
  2406. customElements.define(
  2407. "k-shortcuts-tip",
  2408. class extends HTMLElement {
  2409. constructor() {
  2410. super();
  2411. this.node = document.createElement("span");
  2412. const shadowRoot = this.attachShadow({ mode: "open" });
  2413. shadowRoot.appendChild(this.node);
  2414. this.unsubscribe = Shortcuts.keyBindings.subscribe(() => {
  2415. this.renderKey();
  2416. });
  2417. this.renderKey();
  2418. }
  2419. renderKey() {
  2420. const command = this.getAttribute("command");
  2421. const kb = Shortcuts.keyBindings.getKeyBinding(command);
  2422. if (kb) {
  2423. this.node.textContent = renderKey(kb.key);
  2424. }
  2425. }
  2426. disconnectedCallback() {
  2427. this.unsubscribe();
  2428. }
  2429. }
  2430. );
  2431. function setup$2(player) {
  2432. new Shortcuts(player);
  2433. }
  2434.  
  2435. const SHIFT_KEY = '~!@#$%^&*()_+{}|:"<>?\uFF5E\uFF01@#\xA5%\u2026&*\uFF08\uFF09\u2014\u2014+\u300C\u300D\uFF5C\uFF1A\u201C\u300A\u300B\uFF1F';
  2436. function keybind(keys, cb) {
  2437. const isMac = /macintosh|mac os x/i.test(navigator.userAgent);
  2438. keys = keys.filter((key) => !key.includes(isMac ? "ctrl" : "meta"));
  2439. $(window).on("keydown", (e) => {
  2440. var _a;
  2441. if (((_a = document.activeElement) == null ? void 0 : _a.tagName) === "INPUT")
  2442. return;
  2443. let keyArr = [];
  2444. e.ctrlKey && keyArr.push("ctrl");
  2445. e.metaKey && keyArr.push("meta");
  2446. e.shiftKey && !SHIFT_KEY.includes(e.key) && keyArr.push("shift");
  2447. e.altKey && keyArr.push("alt");
  2448. if (!["Control", "Meta", "Shift", "Alt"].includes(e.key)) {
  2449. keyArr.push(e.key);
  2450. }
  2451. keyArr = [...new Set(keyArr)];
  2452. const key = keyArr.join("+");
  2453. if (keys.includes(key)) {
  2454. cb(e.originalEvent, key);
  2455. }
  2456. });
  2457. }
  2458.  
  2459. var css$e = ".k-modal {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 2147483647;\n text-align: left;\n animation: fadeIn 0.3s ease forwards;\n color: rgba(0, 0, 0, 0.85);\n font-family: system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\", sans-serif;\n}\n@keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n.k-modal * {\n color: inherit;\n}\n.k-modal-mask {\n position: fixed;\n left: 0;\n right: 0;\n bottom: 0;\n top: 0;\n background: rgba(0, 0, 0, 0.45);\n cursor: pointer;\n}\n.k-modal-wrap {\n position: fixed;\n left: 0;\n right: 0;\n bottom: 0;\n top: 0;\n overflow: auto;\n text-align: center;\n user-select: none;\n}\n.k-modal-wrap::before {\n content: \"\";\n display: inline-block;\n width: 0;\n height: 100%;\n vertical-align: middle;\n}\n.k-modal-container {\n margin: 20px 0;\n display: inline-block;\n vertical-align: middle;\n text-align: left;\n position: relative;\n width: 520px;\n min-height: 100px;\n background: white;\n border-radius: 2px;\n user-select: text;\n}\n.k-modal-header {\n font-size: 16px;\n border-bottom: 1px solid #f1f1f1;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n.k-modal-header-title {\n padding: 16px;\n font-weight: 500;\n}\n.k-modal-close {\n cursor: pointer;\n height: 55px;\n width: 55px;\n position: absolute;\n right: 0;\n top: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n user-select: none;\n}\n.k-modal-close * {\n color: rgba(0, 0, 0, 0.45);\n transition: color 0.15s ease;\n}\n.k-modal-close:hover * {\n color: rgba(0, 0, 0, 0.85);\n}\n.k-modal-body {\n padding: 16px;\n font-size: 14px;\n}\n.k-modal-footer {\n padding: 10px 16px;\n font-size: 14px;\n border-top: 1px solid #f1f1f1;\n display: flex;\n justify-content: flex-end;\n}\n.k-modal-btn {\n user-select: none;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 32px;\n line-height: 32px;\n border-radius: 2px;\n border: 1px solid #1890ff;\n background: #1890ff;\n color: white;\n min-width: 64px;\n cursor: pointer;\n padding: 0 8px;\n}";
  2460. injectCss(css$e,{});
  2461.  
  2462. function modal(opts) {
  2463. const { title, content, onClose, onOk, afterClose, okText = "\u786E \u5B9A" } = opts;
  2464. const store = {
  2465. width: document.body.style.width,
  2466. overflow: document.body.style.overflow
  2467. };
  2468. const ID = Math.random().toString(16).slice(2);
  2469. $(`
  2470. <div class="k-modal ${opts.className || ""}" role="dialog" id="${ID}">
  2471. <div class="k-modal-mask"></div>
  2472. <div class="k-modal-wrap">
  2473. <div class="k-modal-container" ${opts.width ? `style="width:${opts.width}px;"` : ""}>
  2474. <div class="k-modal-header">
  2475. <div class="k-modal-header-title"></div>
  2476. <a class="k-modal-close">
  2477. <svg viewBox="64 64 896 896" focusable="false" data-icon="close" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"></path></svg>
  2478. </a>
  2479. </div>
  2480. <div class="k-modal-body">
  2481. </div>
  2482. </div>
  2483. </div>
  2484. </div>`).appendTo("body");
  2485. $("body").css({
  2486. width: `calc(100% - ${window.innerWidth - document.body.clientWidth}px)`,
  2487. overflow: "hidden"
  2488. });
  2489. if (title) {
  2490. $(`#${ID} .k-modal-header-title`).append(title);
  2491. } else
  2492. $(`#${ID} .k-modal-header-title`).remove();
  2493. $(`#${ID} .k-modal-body`).append(content);
  2494. $(`#${ID} .k-modal-close`).on("click", () => {
  2495. handleClose();
  2496. });
  2497. $(`#${ID} .k-modal-container`).on("click", (e) => {
  2498. e.stopPropagation();
  2499. });
  2500. $(`#${ID} .k-modal-wrap`).on("click", () => {
  2501. handleClose();
  2502. });
  2503. function reset() {
  2504. $(`#${ID}`).remove();
  2505. $("body").css(store);
  2506. window.removeEventListener("keydown", fn, { capture: true });
  2507. afterClose == null ? void 0 : afterClose();
  2508. }
  2509. function handleClose() {
  2510. onClose == null ? void 0 : onClose();
  2511. reset();
  2512. }
  2513. function handleOk() {
  2514. onOk == null ? void 0 : onOk();
  2515. reset();
  2516. }
  2517. function fn(e) {
  2518. if (["Escape"].includes(e.key)) {
  2519. e.stopPropagation();
  2520. handleClose();
  2521. }
  2522. }
  2523. window.addEventListener("keydown", fn, { capture: true });
  2524. if (onOk) {
  2525. $(`#${ID} .k-modal-container`).append(`
  2526. <div class="k-modal-footer">
  2527. <button class="k-modal-btn k-modal-ok">${okText}</button>
  2528. </div>
  2529. `);
  2530. $(`#${ID} .k-modal-ok`).on("click", () => {
  2531. handleOk();
  2532. });
  2533. }
  2534. }
  2535.  
  2536. var css$d = ".k-alert {\n margin-bottom: 16px;\n box-sizing: border-box;\n color: black;\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: \"tnum\";\n position: relative;\n display: flex;\n align-items: center;\n padding: 8px 15px;\n word-wrap: break-word;\n border-radius: 2px;\n}\n.k-alert-icon {\n margin-right: 8px;\n display: block;\n color: var(--k-player-primary-color);\n}\n.k-alert-content {\n flex: 1;\n min-width: 0;\n}\n.k-alert-info {\n background-color: var(--k-player-primary-color-highlight);\n border: 1px solid var(--k-player-primary-color);\n}";
  2537. injectCss(css$d,{});
  2538.  
  2539. function alert(html) {
  2540. return `<div class="k-alert k-alert-info">
  2541. <svg class="k-alert-icon" viewBox="64 64 896 896" focusable="false" data-icon="info-circle" width="1em" height="1em" fill="currentColor" aria-hidden="true">
  2542. <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"></path>
  2543. </svg>
  2544. <div class="k-alert-content">
  2545. <div class="k-alert-message">${html}</div>
  2546. </div>
  2547. </div>`;
  2548. }
  2549.  
  2550. var css$c = ".k-tab {\n flex: 1;\n white-space: nowrap;\n cursor: pointer;\n text-align: center;\n padding: 8px 0;\n}\n.k-tabs {\n display: flex;\n position: relative;\n border-bottom: 1px solid rgba(255, 255, 255, 0.2);\n}\n.k-tabs-wrapper {\n text-align: left;\n overflow: hidden;\n}\n.k-tabs-wrapper * {\n box-sizing: border-box;\n}\n.k-tab-indicator {\n position: absolute;\n width: 0;\n height: 1px;\n left: 0;\n bottom: -1px;\n background-color: var(--k-player-primary-color);\n transition: all 0.3s;\n}\n.k-tabs-panes {\n display: flex;\n flex-wrap: nowrap;\n transition: all 0.3s;\n}\n.k-tab-pane {\n flex: 0 0 100%;\n width: 100%;\n padding: 8px;\n position: relative;\n}";
  2551. injectCss(css$c,{});
  2552.  
  2553. function tabs(opts) {
  2554. const tabsHTML = [];
  2555. const tabsContentHTML = [];
  2556. opts.forEach((tab, idx) => {
  2557. const tabHTML = `<div class="k-tab" data-idx="${idx}">${tab.name}</div>`;
  2558. const $contentHTML = $(
  2559. `<div class="k-tab-pane ${tab.className || ""}"></div>`
  2560. );
  2561. $contentHTML.append(
  2562. typeof tab.content === "function" ? tab.content() : tab.content
  2563. );
  2564. tabsHTML.push(tabHTML);
  2565. tabsContentHTML.push($contentHTML);
  2566. });
  2567. const $root = $(`<div class="k-tabs-wrapper">
  2568. <div class="k-tabs">
  2569. ${tabsHTML.join("")}
  2570. <div class="k-tab-indicator"></div>
  2571. </div>
  2572. <div class="k-tabs-panes"></div>
  2573. </div>`);
  2574. $root.find(".k-tabs-panes").append(...tabsContentHTML);
  2575. const $indicator = $root.find(".k-tab-indicator");
  2576. $root.find(".k-tab").on("click", (e) => {
  2577. $root.find(".k-tab").removeClass("active");
  2578. const $tab = $(e.target).addClass("active");
  2579. const idx = parseInt($tab.attr("data-idx"));
  2580. $root.find(".k-tabs-panes").css("transform", `translateX(-${idx * 100}%)`);
  2581. function updateIndictor() {
  2582. const width = $tab.outerWidth();
  2583. if (width)
  2584. $indicator.css({ width, left: idx * width });
  2585. else
  2586. requestAnimationFrame(updateIndictor);
  2587. }
  2588. updateIndictor();
  2589. });
  2590. $root.find(".k-tab:first").trigger("click");
  2591. return $root;
  2592. }
  2593.  
  2594. var css$b = ".script-info .k-modal-body {\n padding: 0;\n}\n.script-info .k-modal-body * {\n box-sizing: border-box;\n font-size: 14px;\n line-height: normal;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\", sans-serif;\n}\n.script-info .k-modal-body table {\n width: 100%;\n border-spacing: 0;\n border-collapse: separate;\n}\n.script-info .k-modal-body tbody tr td:first-child {\n white-space: nowrap;\n width: 85px;\n}\n.script-info .k-modal-body th,\n.script-info .k-modal-body td {\n padding: 8px;\n border-bottom: 1px solid #f1f1f1;\n word-wrap: break-word;\n word-break: break-all;\n}\n.script-info .k-modal-body .info-title {\n font-weight: 600;\n padding-top: 24px;\n}\n.script-info .k-modal-body a {\n color: var(--k-player-primary-color);\n margin: -4px 0 -4px -8px;\n padding: 4px 8px;\n border-radius: 4px;\n text-decoration: none;\n cursor: pointer;\n display: inline-block;\n white-space: nowrap;\n}\n.script-info .k-modal-body a:hover {\n color: var(--k-player-primary-color);\n background-color: var(--k-player-primary-color-highlight);\n}\n.script-info .k-modal-body .k-tabs {\n border-bottom: 1px solid #f1f1f1;\n}\n.script-info .k-modal-body .shortcuts {\n padding: 8px;\n}\n.script-info .k-modal-body .shortcuts-wrapper {\n height: 400px;\n padding: 0;\n overflow-y: scroll;\n position: relative;\n}\n.script-info .k-modal-body .shortcuts-wrapper::-webkit-scrollbar {\n width: 8px;\n}\n.script-info .k-modal-body .shortcuts-wrapper::-webkit-scrollbar-thumb {\n background: rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n}\n.script-info .k-modal-body .shortcuts-wrapper::-webkit-scrollbar-thumb:hover {\n background-color: rgba(0, 0, 0, 0.45);\n}\n.script-info .k-modal-body .shortcuts th {\n position: sticky;\n background-color: white;\n top: 0;\n z-index: 1;\n}\n.script-info .k-modal-body .shortcuts .shortcuts-input-wrapper {\n display: flex;\n align-items: center;\n}\n.script-info .k-modal-body .shortcuts .k-input {\n flex: 1;\n padding: 4px 8px;\n border-radius: 4px;\n}\n.script-info .k-modal-body .shortcuts a {\n margin-left: 8px;\n}\n.script-info .k-modal-body .shortcuts .k-font-kbd {\n font-family: consolas, monospace;\n}\n.script-info .k-modal-body .feature {\n margin-bottom: 8px;\n}\n.script-info .k-modal-body .feature-title {\n font-weight: 500;\n}\n.script-info .k-modal-body .feature-description {\n color: #666;\n}";
  2595. injectCss(css$b,{});
  2596.  
  2597. function genIssueURL({ title, body }) {
  2598. const url = new URL(
  2599. `https://github.com/IronKinoko/agefans-enhance/issues/new`
  2600. );
  2601. url.searchParams.set("title", title);
  2602. url.searchParams.set("body", body);
  2603. return url.toString();
  2604. }
  2605. const scriptInfo = (video) => {
  2606. const githubIssueURL = genIssueURL({
  2607. title: "\u{1F41B}[Bug]",
  2608. body: issueBody(video == null ? void 0 : video.src)
  2609. });
  2610. return tabs([
  2611. {
  2612. name: "\u811A\u672C\u4FE1\u606F",
  2613. content: `
  2614. <table class="k-table">
  2615. <tbody>
  2616. <tr><td>\u811A\u672C\u7248\u672C</td><td>${"1.49.0"}</td></tr>
  2617. <tr>
  2618. <td>\u811A\u672C\u4F5C\u8005</td>
  2619. <td><a target="_blank" rel="noreferrer" href="https://github.com/IronKinoko">IronKinoko</a></td>
  2620. </tr>
  2621. <tr>
  2622. <td>\u811A\u672C\u94FE\u63A5</td>
  2623. <td>
  2624. <a target="_blank" rel="noreferrer" href="https://github.com/IronKinoko/agefans-enhance">GitHub \u6E90\u7801</a>
  2625. <a target="_blank" rel="noreferrer" href="https://github.com/IronKinoko/agefans-enhance/releases">\u66F4\u65B0\u8BB0\u5F55</a>
  2626. <a target="_blank" rel="noreferrer" href="https://ironkinoko.github.io/agefans-enhance/">\u5728\u7EBF\u64AD\u653E\u5668</a>
  2627. </td>
  2628. </tr>
  2629. <tr>
  2630. <td>\u811A\u672C\u53CD\u9988</td>
  2631. <td>
  2632. <a target="_blank" rel="noreferrer" href="${githubIssueURL}">GitHub Issues</a>
  2633. <a target="_blank" rel="noreferrer" href="https://gf.qytechs.cn/scripts/424023/feedback">Greasy Fork镜像 \u53CD\u9988</a>
  2634. </td>
  2635. </tr>
  2636. <tr>
  2637. <td>\u7279\u522B\u9E23\u8C22</td>
  2638. <td>
  2639. <a target="_blank" rel="noreferrer" href="https://www.dandanplay.com/">\u5F39\u5F39play</a>\u63D0\u4F9B\u5F39\u5E55\u670D\u52A1
  2640. </td>
  2641. </tr>
  2642. ${video ? `<tr><td colspan="2" class="info-title">\u89C6\u9891\u4FE1\u606F</td></tr>
  2643. <tr><td>\u89C6\u9891\u94FE\u63A5</td><td>${video.src}</td></tr>
  2644. <tr><td>\u89C6\u9891\u4FE1\u606F</td><td>${video.videoWidth} x ${video.videoHeight}</td></tr>` : ""}
  2645. </tbody>
  2646. </table>
  2647. `
  2648. },
  2649. {
  2650. name: "\u5FEB\u6377\u952E",
  2651. className: "shortcuts-wrapper",
  2652. content: () => {
  2653. const $root = $(`
  2654. <div class="shortcuts">
  2655. ${alert("\u81EA\u5B9A\u4E49\u6309\u952E\u7ACB\u5373\u751F\u6548\uFF0C\u8BF7\u4F7F\u7528\u82F1\u6587\u8F93\u5165\u6CD5")}
  2656.  
  2657. <table class="k-table">
  2658. <thead>
  2659. <tr>
  2660. <th>\u52A8\u4F5C</th>
  2661. <th>\u9ED8\u8BA4\u6309\u952E</th>
  2662. <th>\u81EA\u5B9A\u4E49</th>
  2663. </tr>
  2664. </thead>
  2665. <colgroup>
  2666. <col style="width:130px"></col>
  2667. <col style="width:130px"></col>
  2668. <col></col>
  2669. </colgroup>
  2670. <tbody></tbody>
  2671. </table>
  2672. </div>
  2673. `);
  2674. const keyBindings = Shortcuts.keyBindings.getKeyBindings();
  2675. keyBindings.forEach((kb) => {
  2676. const $tr = $(`
  2677. <tr>
  2678. <td>${kb.description}</td>
  2679. <td><span class="k-font-kbd">${renderKey(kb.originKey)}</span></td>
  2680. <td>
  2681. <div class="shortcuts-input-wrapper">
  2682. <input type="text" class="k-input k-font-kbd"><a>\u5220\u9664</a>
  2683. </div>
  2684. </td>
  2685. </tr>
  2686. `);
  2687. if (kb.editable !== false) {
  2688. $tr.find("input").val(renderKey(kb.customKey)).on("keydown", function(e) {
  2689. e.stopPropagation();
  2690. e.preventDefault();
  2691. const key = normalizeKeyEvent(e.originalEvent);
  2692. this.value = renderKey(key);
  2693. Shortcuts.keyBindings.setKeyBinding(kb.command, key);
  2694. });
  2695. $tr.find("a").on("click", function(e) {
  2696. $tr.find("input").val("");
  2697. Shortcuts.keyBindings.setKeyBinding(kb.command, "");
  2698. });
  2699. } else {
  2700. $tr.find("td").eq(2).html("\u4E0D\u652F\u6301\u81EA\u5B9A\u4E49");
  2701. }
  2702. $root.find("tbody").append($tr);
  2703. });
  2704. return $root;
  2705. }
  2706. },
  2707. {
  2708. name: "\u5B9E\u9A8C\u6027\u529F\u80FD",
  2709. className: "feature-wrapper",
  2710. content: () => `
  2711. <div>
  2712. ${alert("\u5B9E\u9A8C\u6027\u529F\u80FD\u53EF\u80FD\u5B58\u5728\u95EE\u9898\uFF0C\u4EC5\u4F9B\u5C1D\u8BD5")}
  2713.  
  2714. <ul class="features">
  2715. <li class="feature">
  2716. <div class="feature-title">\u64AD\u653E\u672C\u5730\u89C6\u9891</div>
  2717. <div class="feature-desc">\u5C06\u672C\u5730\u89C6\u9891\u6587\u4EF6\u62D6\u5165\u5230\u89C6\u9891\u533A\u57DF\uFF0C\u5E38\u7528\u4E8E\u64AD\u653E\u672C\u5730\u66F4\u9AD8\u6E05\u7684\u89C6\u9891</div>
  2718. </li>
  2719. <li class="feature">
  2720. <div class="feature-title">\u652F\u6301\u5BFC\u5165 <a target="_blank" rel="noreferrer" href="https://github.com/xmcp/pakku.js">Pakku\u54D4\u54E9\u54D4\u54E9\u5F39\u5E55\u8FC7\u6EE4\u5668</a>\u751F\u6210\u7684\u5F39\u5E55\u6587\u4EF6</div>
  2721. <div class="feature-desc">\u5C06 Pakku \u751F\u6210\u7684XML\u5F39\u5E55\u6587\u4EF6\u62D6\u5165\u5230\u89C6\u9891\u533A\u57DF\uFF0C\u4F1A\u8986\u76D6\u5185\u7F6E\u7684\u5F39\u5E55\u6570\u636E</div>
  2722. </li>
  2723. <ul>
  2724. </div>
  2725. `
  2726. }
  2727. ]);
  2728. };
  2729. const issueBody = (src = "") => `# \u6587\u5B57\u63CF\u8FF0
  2730. <!-- \u5982\u679C\u6709\u9700\u8981\u989D\u5916\u63CF\u8FF0\uFF0C\u6216\u8005\u63D0\u610F\u89C1\u53EF\u4EE5\u5199\u5728\u4E0B\u9762\u7A7A\u767D\u5904 -->
  2731.  
  2732.  
  2733. # \u7F51\u5740\u94FE\u63A5
  2734. ${window.location.href}
  2735.  
  2736. # \u89C6\u9891\u94FE\u63A5
  2737. ${src}
  2738.  
  2739. # \u73AF\u5883
  2740. userAgent: ${navigator.userAgent}
  2741. \u811A\u672C\u7248\u672C: ${"1.49.0"}
  2742. `;
  2743.  
  2744. const GlobalKey = "show-help-info";
  2745. function help() {
  2746. if (!document.fullscreenElement) {
  2747. const video = $("#k-player")[0];
  2748. if (parent !== self) {
  2749. parent.postMessage(
  2750. {
  2751. key: GlobalKey,
  2752. video: video ? {
  2753. src: video.currentSrc,
  2754. videoWidth: video.videoWidth,
  2755. videoHeight: video.videoHeight
  2756. } : null
  2757. },
  2758. "*"
  2759. );
  2760. return;
  2761. }
  2762. showHelp(video);
  2763. }
  2764. }
  2765. function showHelp(video) {
  2766. if ($(".script-info").length)
  2767. return;
  2768. modal({
  2769. className: "script-info",
  2770. title: "agefans Enhance",
  2771. content: scriptInfo(video)
  2772. });
  2773. }
  2774. keybind(["?", "\uFF1F"], help);
  2775. window.addEventListener("message", (e) => {
  2776. var _a;
  2777. if (((_a = e.data) == null ? void 0 : _a.key) !== GlobalKey)
  2778. return;
  2779. showHelp(e.data.video);
  2780. });
  2781.  
  2782. function seekTime(duration) {
  2783. return function() {
  2784. this.currentTime = clamp(this.currentTime + duration, 0, this.plyr.duration);
  2785. this.message.info(`\u6B65${duration < 0 ? "\u9000" : "\u8FDB"}${Math.abs(duration)}s`);
  2786. };
  2787. }
  2788. Shortcuts.registerCommand(Commands$1.forward5, seekTime(5));
  2789. Shortcuts.registerCommand(Commands$1.backward5, seekTime(-5));
  2790. Shortcuts.registerCommand(Commands$1.forward30, seekTime(30));
  2791. Shortcuts.registerCommand(Commands$1.backward30, seekTime(-30));
  2792. Shortcuts.registerCommand(Commands$1.forward60, seekTime(60));
  2793. Shortcuts.registerCommand(Commands$1.backward60, seekTime(-60));
  2794. Shortcuts.registerCommand(Commands$1.forward90, seekTime(90));
  2795. Shortcuts.registerCommand(Commands$1.backward90, seekTime(-90));
  2796. Shortcuts.registerCommand(Commands$1.forwardCustom, function(e) {
  2797. seekTime(+this.localConfig.customSeekTime).call(this, e);
  2798. });
  2799. Shortcuts.registerCommand(Commands$1.backwardCustom, function(e) {
  2800. seekTime(-this.localConfig.customSeekTime).call(this, e);
  2801. });
  2802. Shortcuts.registerCommand(
  2803. Commands$1.recordCustomSeekTime,
  2804. (() => {
  2805. let open = false;
  2806. return function() {
  2807. if (open)
  2808. return;
  2809. open = true;
  2810. this.plyr.pause();
  2811. modal({
  2812. width: 250,
  2813. title: "\u81EA\u5B9A\u4E49\u8DF3\u8F6C\u65F6\u95F4",
  2814. content: `<label>
  2815. <span>\u81EA\u5B9A\u4E49\u8DF3\u8F6C\u65F6\u95F4</span>
  2816. <input id="k-customSeekTime" class="k-input-number" style="width:60px" type="number" value="${this.localConfig.customSeekTime}" />
  2817. <span>\u79D2</span>
  2818. </label>
  2819. `,
  2820. afterClose: () => {
  2821. open = false;
  2822. this.plyr.play();
  2823. },
  2824. onOk: () => {
  2825. const $input = $("#k-customSeekTime");
  2826. const value = $input.val();
  2827. if (!value || isNaN(+value)) {
  2828. this.message.info("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u6570\u5B57");
  2829. return;
  2830. }
  2831. this.configSaveToLocal("customSeekTime", +value);
  2832. this.message.info(
  2833. `\u8BB0\u5F55\u6210\u529F\uFF0C\u81EA\u5B9A\u4E49\u8DF3\u8F6C\u65F6\u95F4\u4E3A${this.localConfig.customSeekTime}s`
  2834. );
  2835. }
  2836. });
  2837. };
  2838. })()
  2839. );
  2840. Shortcuts.registerCommand(Commands$1.prev, function() {
  2841. this.trigger("prev");
  2842. });
  2843. Shortcuts.registerCommand(Commands$1.next, function() {
  2844. this.trigger("next");
  2845. });
  2846. Shortcuts.registerCommand(Commands$1.toggleWidescreen, function() {
  2847. if (this.plyr.fullscreen.active)
  2848. return;
  2849. this.toggleWidescreen();
  2850. });
  2851. Shortcuts.registerCommand(Commands$1.togglePlay, function() {
  2852. this.plyr.togglePlay();
  2853. });
  2854. Shortcuts.registerCommand(Commands$1.Escape, function() {
  2855. if (this.plyr.fullscreen.active || !this.isWideScreen)
  2856. return;
  2857. this.toggleWidescreen(false);
  2858. });
  2859. Shortcuts.registerCommand(
  2860. Commands$1.restoreSpeed,
  2861. (() => {
  2862. let prevSpeed = 1;
  2863. return function() {
  2864. if (this.speed !== 1) {
  2865. prevSpeed = this.speed;
  2866. this.speed = 1;
  2867. } else {
  2868. if (this.speed !== prevSpeed) {
  2869. this.speed = prevSpeed;
  2870. }
  2871. }
  2872. };
  2873. })()
  2874. );
  2875. function changeSpeed(diff) {
  2876. return function() {
  2877. let idx = this.speedList.indexOf(this.speed);
  2878. const newIdx = clamp(idx + diff, 0, this.speedList.length - 1);
  2879. if (newIdx === idx)
  2880. return;
  2881. const speed = this.speedList[newIdx];
  2882. this.speed = speed;
  2883. };
  2884. }
  2885. Shortcuts.registerCommand(Commands$1.increaseSpeed, changeSpeed(1));
  2886. Shortcuts.registerCommand(Commands$1.decreaseSpeed, changeSpeed(-1));
  2887. function createTemporaryIncreaseSpeed() {
  2888. let prevSpeed = 1;
  2889. let isIncreasingSpeed = false;
  2890. return [
  2891. function keydown(e) {
  2892. if (!e.repeat || isIncreasingSpeed)
  2893. return;
  2894. isIncreasingSpeed = true;
  2895. prevSpeed = this.speed;
  2896. this.plyr.speed = 3;
  2897. this.message.info("\u500D\u901F\u64AD\u653E\u4E2D", 500);
  2898. },
  2899. function keyup(e) {
  2900. if (!isIncreasingSpeed)
  2901. return;
  2902. isIncreasingSpeed = false;
  2903. this.plyr.speed = prevSpeed;
  2904. }
  2905. ];
  2906. }
  2907. Shortcuts.registerCommand(
  2908. Commands$1.temporaryIncreaseSpeed,
  2909. ...createTemporaryIncreaseSpeed()
  2910. );
  2911. Shortcuts.registerCommand(Commands$1.togglePIP, function() {
  2912. this.plyr.pip = !this.plyr.pip;
  2913. });
  2914. Shortcuts.registerCommand(Commands$1.internal, function() {
  2915. });
  2916. function changeFrame(diff) {
  2917. let fps = 30;
  2918. let isSuspend = false;
  2919. return function() {
  2920. this.plyr.pause();
  2921. this.currentTime = clamp(
  2922. this.currentTime + diff / fps,
  2923. 0,
  2924. this.plyr.duration
  2925. );
  2926. if (this.localConfig.autoplay) {
  2927. if (!isSuspend) {
  2928. this.plyr.play = ((play) => {
  2929. isSuspend = true;
  2930. return () => {
  2931. isSuspend = false;
  2932. this.plyr.play = play;
  2933. };
  2934. })(this.plyr.play);
  2935. }
  2936. }
  2937. this.message.destroy();
  2938. this.message.info(`${diff > 0 ? "\u4E0B" : "\u4E0A"}\u4E00\u5E27`);
  2939. };
  2940. }
  2941. Shortcuts.registerCommand(Commands$1.prevFrame, changeFrame(-1));
  2942. Shortcuts.registerCommand(Commands$1.nextFrame, changeFrame(1));
  2943. Shortcuts.registerCommand(Commands$1.toggleFullscreen, function() {
  2944. this.plyr.fullscreen.toggle();
  2945. });
  2946. Shortcuts.registerCommand(Commands$1.increaseVolume, function() {
  2947. this.plyr.increaseVolume(0.05);
  2948. this.message.info(`\u97F3\u91CF${Math.round(this.plyr.volume * 100)}%`);
  2949. });
  2950. Shortcuts.registerCommand(Commands$1.decreaseVolume, function() {
  2951. this.plyr.decreaseVolume(0.05);
  2952. this.message.info(`\u97F3\u91CF${Math.round(this.plyr.volume * 100)}%`);
  2953. });
  2954. Shortcuts.registerCommand(Commands$1.toggleMute, function() {
  2955. this.plyr.muted = !this.plyr.muted;
  2956. this.message.info(this.plyr.muted ? "\u9759\u97F3" : "\u53D6\u6D88\u9759\u97F3");
  2957. });
  2958.  
  2959. var img = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3c!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3csymbol id='plyr-airplay' viewBox='0 0 18 18'%3e%3cpath d='M16 1H2a1 1 0 00-1 1v10a1 1 0 001 1h3v-2H3V3h12v8h-2v2h3a1 1 0 001-1V2a1 1 0 00-1-1z'/%3e%3cpath d='M4 17h10l-5-6z'/%3e%3c/symbol%3e%3csymbol id='plyr-captions-off' viewBox='0 0 18 18'%3e%3cpath d='M1 1c-.6 0-1 .4-1 1v11c0 .6.4 1 1 1h4.6l2.7 2.7c.2.2.4.3.7.3.3 0 .5-.1.7-.3l2.7-2.7H17c.6 0 1-.4 1-1V2c0-.6-.4-1-1-1H1zm4.52 10.15c1.99 0 3.01-1.32 3.28-2.41l-1.29-.39c-.19.66-.78 1.45-1.99 1.45-1.14 0-2.2-.83-2.2-2.34 0-1.61 1.12-2.37 2.18-2.37 1.23 0 1.78.75 1.95 1.43l1.3-.41C8.47 4.96 7.46 3.76 5.5 3.76c-1.9 0-3.61 1.44-3.61 3.7 0 2.26 1.65 3.69 3.63 3.69zm7.57 0c1.99 0 3.01-1.32 3.28-2.41l-1.29-.39c-.19.66-.78 1.45-1.99 1.45-1.14 0-2.2-.83-2.2-2.34 0-1.61 1.12-2.37 2.18-2.37 1.23 0 1.78.75 1.95 1.43l1.3-.41c-.28-1.15-1.29-2.35-3.25-2.35-1.9 0-3.61 1.44-3.61 3.7 0 2.26 1.65 3.69 3.63 3.69z' fill-rule='evenodd' fill-opacity='.5'/%3e%3c/symbol%3e%3csymbol id='plyr-captions-on' viewBox='0 0 18 18'%3e%3cpath d='M1 1c-.6 0-1 .4-1 1v11c0 .6.4 1 1 1h4.6l2.7 2.7c.2.2.4.3.7.3.3 0 .5-.1.7-.3l2.7-2.7H17c.6 0 1-.4 1-1V2c0-.6-.4-1-1-1H1zm4.52 10.15c1.99 0 3.01-1.32 3.28-2.41l-1.29-.39c-.19.66-.78 1.45-1.99 1.45-1.14 0-2.2-.83-2.2-2.34 0-1.61 1.12-2.37 2.18-2.37 1.23 0 1.78.75 1.95 1.43l1.3-.41C8.47 4.96 7.46 3.76 5.5 3.76c-1.9 0-3.61 1.44-3.61 3.7 0 2.26 1.65 3.69 3.63 3.69zm7.57 0c1.99 0 3.01-1.32 3.28-2.41l-1.29-.39c-.19.66-.78 1.45-1.99 1.45-1.14 0-2.2-.83-2.2-2.34 0-1.61 1.12-2.37 2.18-2.37 1.23 0 1.78.75 1.95 1.43l1.3-.41c-.28-1.15-1.29-2.35-3.25-2.35-1.9 0-3.61 1.44-3.61 3.7 0 2.26 1.65 3.69 3.63 3.69z' fill-rule='evenodd'/%3e%3c/symbol%3e%3csymbol id='plyr-download' viewBox='0 0 18 18'%3e%3cpath d='M9 13c.3 0 .5-.1.7-.3L15.4 7 14 5.6l-4 4V1H8v8.6l-4-4L2.6 7l5.7 5.7c.2.2.4.3.7.3zm-7 2h14v2H2z'/%3e%3c/symbol%3e%3csymbol id='plyr-enter-fullscreen' viewBox='0 0 18 18'%3e%3cpath d='M10 3h3.6l-4 4L11 8.4l4-4V8h2V1h-7zM7 9.6l-4 4V10H1v7h7v-2H4.4l4-4z'/%3e%3c/symbol%3e%3csymbol id='plyr-exit-fullscreen' viewBox='0 0 18 18'%3e%3cpath d='M1 12h3.6l-4 4L2 17.4l4-4V17h2v-7H1zM16 .6l-4 4V1h-2v7h7V6h-3.6l4-4z'/%3e%3c/symbol%3e%3csymbol id='plyr-fast-forward' viewBox='0 0 18 18'%3e%3cpath d='M7.875 7.171L0 1v16l7.875-6.171V17L18 9 7.875 1z'/%3e%3c/symbol%3e%3csymbol id='plyr-logo-vimeo' viewBox='0 0 18 18'%3e%3cpath d='M17 5.3c-.1 1.6-1.2 3.7-3.3 6.4-2.2 2.8-4 4.2-5.5 4.2-.9 0-1.7-.9-2.4-2.6C5 10.9 4.4 6 3 6c-.1 0-.5.3-1.2.8l-.8-1c.8-.7 3.5-3.4 4.7-3.5 1.2-.1 2 .7 2.3 2.5.3 2 .8 6.1 1.8 6.1.9 0 2.5-3.4 2.6-4 .1-.9-.3-1.9-2.3-1.1.8-2.6 2.3-3.8 4.5-3.8 1.7.1 2.5 1.2 2.4 3.3z'/%3e%3c/symbol%3e%3csymbol id='plyr-logo-youtube' viewBox='0 0 18 18'%3e%3cpath d='M16.8 5.8c-.2-1.3-.8-2.2-2.2-2.4C12.4 3 9 3 9 3s-3.4 0-5.6.4C2 3.6 1.3 4.5 1.2 5.8 1 7.1 1 9 1 9s0 1.9.2 3.2c.2 1.3.8 2.2 2.2 2.4C5.6 15 9 15 9 15s3.4 0 5.6-.4c1.4-.3 2-1.1 2.2-2.4.2-1.3.2-3.2.2-3.2s0-1.9-.2-3.2zM7 12V6l5 3-5 3z'/%3e%3c/symbol%3e%3csymbol id='plyr-muted' viewBox='0 0 18 18'%3e%3cpath d='M12.4 12.5l2.1-2.1 2.1 2.1 1.4-1.4L15.9 9 18 6.9l-1.4-1.4-2.1 2.1-2.1-2.1L11 6.9 13.1 9 11 11.1zM3.786 6.008H.714C.286 6.008 0 6.31 0 6.76v4.512c0 .452.286.752.714.752h3.072l4.071 3.858c.5.3 1.143 0 1.143-.602V2.752c0-.601-.643-.977-1.143-.601L3.786 6.008z'/%3e%3c/symbol%3e%3csymbol id='plyr-pause' viewBox='0 0 18 18'%3e%3cpath d='M6 1H3c-.6 0-1 .4-1 1v14c0 .6.4 1 1 1h3c.6 0 1-.4 1-1V2c0-.6-.4-1-1-1zm6 0c-.6 0-1 .4-1 1v14c0 .6.4 1 1 1h3c.6 0 1-.4 1-1V2c0-.6-.4-1-1-1h-3z'/%3e%3c/symbol%3e%3csymbol id='plyr-pip' viewBox='0 0 18 18'%3e%3cpath d='M13.293 3.293L7.022 9.564l1.414 1.414 6.271-6.271L17 7V1h-6z'/%3e%3cpath d='M13 15H3V5h5V3H2a1 1 0 00-1 1v12a1 1 0 001 1h12a1 1 0 001-1v-6h-2v5z'/%3e%3c/symbol%3e%3csymbol id='plyr-play' viewBox='0 0 18 18'%3e%3cpath d='M15.562 8.1L3.87.225c-.818-.562-1.87 0-1.87.9v15.75c0 .9 1.052 1.462 1.87.9L15.563 9.9c.584-.45.584-1.35 0-1.8z'/%3e%3c/symbol%3e%3csymbol id='plyr-restart' viewBox='0 0 18 18'%3e%3cpath d='M9.7 1.2l.7 6.4 2.1-2.1c1.9 1.9 1.9 5.1 0 7-.9 1-2.2 1.5-3.5 1.5-1.3 0-2.6-.5-3.5-1.5-1.9-1.9-1.9-5.1 0-7 .6-.6 1.4-1.1 2.3-1.3l-.6-1.9C6 2.6 4.9 3.2 4 4.1 1.3 6.8 1.3 11.2 4 14c1.3 1.3 3.1 2 4.9 2 1.9 0 3.6-.7 4.9-2 2.7-2.7 2.7-7.1 0-9.9L16 1.9l-6.3-.7z'/%3e%3c/symbol%3e%3csymbol id='plyr-rewind' viewBox='0 0 18 18'%3e%3cpath d='M10.125 1L0 9l10.125 8v-6.171L18 17V1l-7.875 6.171z'/%3e%3c/symbol%3e%3csymbol id='plyr-settings' viewBox='0 0 18 18'%3e%3cpath d='M16.135 7.784a2 2 0 01-1.23-2.969c.322-.536.225-.998-.094-1.316l-.31-.31c-.318-.318-.78-.415-1.316-.094a2 2 0 01-2.969-1.23C10.065 1.258 9.669 1 9.219 1h-.438c-.45 0-.845.258-.997.865a2 2 0 01-2.969 1.23c-.536-.322-.999-.225-1.317.093l-.31.31c-.318.318-.415.781-.093 1.317a2 2 0 01-1.23 2.969C1.26 7.935 1 8.33 1 8.781v.438c0 .45.258.845.865.997a2 2 0 011.23 2.969c-.322.536-.225.998.094 1.316l.31.31c.319.319.782.415 1.316.094a2 2 0 012.969 1.23c.151.607.547.865.997.865h.438c.45 0 .845-.258.997-.865a2 2 0 012.969-1.23c.535.321.997.225 1.316-.094l.31-.31c.318-.318.415-.781.094-1.316a2 2 0 011.23-2.969c.607-.151.865-.547.865-.997v-.438c0-.451-.26-.846-.865-.997zM9 12a3 3 0 110-6 3 3 0 010 6z'/%3e%3c/symbol%3e%3csymbol id='plyr-volume' viewBox='0 0 18 18'%3e%3cpath d='M15.6 3.3c-.4-.4-1-.4-1.4 0-.4.4-.4 1 0 1.4C15.4 5.9 16 7.4 16 9c0 1.6-.6 3.1-1.8 4.3-.4.4-.4 1 0 1.4.2.2.5.3.7.3.3 0 .5-.1.7-.3C17.1 13.2 18 11.2 18 9s-.9-4.2-2.4-5.7z'/%3e%3cpath d='M11.282 5.282a.909.909 0 000 1.316c.735.735.995 1.458.995 2.402 0 .936-.425 1.917-.995 2.487a.909.909 0 000 1.316c.145.145.636.262 1.018.156a.725.725 0 00.298-.156C13.773 11.733 14.13 10.16 14.13 9c0-.17-.002-.34-.011-.51-.053-.992-.319-2.005-1.522-3.208a.909.909 0 00-1.316 0zm-7.496.726H.714C.286 6.008 0 6.31 0 6.76v4.512c0 .452.286.752.714.752h3.072l4.071 3.858c.5.3 1.143 0 1.143-.602V2.752c0-.601-.643-.977-1.143-.601L3.786 6.008z'/%3e%3c/symbol%3e%3c/svg%3e";
  2960.  
  2961. const icons = `
  2962. <svg
  2963. xmlns="http://www.w3.org/2000/svg"
  2964. style="position: absolute; width: 0px; height: 0px; overflow: hidden"
  2965. aria-hidden="true"
  2966. >
  2967. <!-- Plyr.svg -->
  2968. ${decodeURIComponent(img.replace("data:image/svg+xml,", ""))}
  2969.  
  2970. <!-- \u81EA\u5B9A\u4E49\u7684 symbol \u5143\u7D20 -->
  2971. <symbol id="next" viewBox="0 0 22 22">
  2972. <path
  2973. d="M16 5a1 1 0 00-1 1v4.615a1.431 1.431 0 00-.615-.829L7.21 5.23A1.439 1.439 0 005 6.445v9.11a1.44 1.44 0 002.21 1.215l7.175-4.555a1.436 1.436 0 00.616-.828V16a1 1 0 002 0V6C17 5.448 16.552 5 16 5z"
  2974. ></path>
  2975. </symbol>
  2976.  
  2977. <symbol
  2978. id="widescreen"
  2979. viewBox="0 0 88 88"
  2980. preserveAspectRatio="xMidYMid meet"
  2981. >
  2982. <defs>
  2983. <clipPath id="__lottie_element_127">
  2984. <rect width="88" height="88" x="0" y="0"></rect>
  2985. </clipPath>
  2986. </defs>
  2987. <g clip-path="url(#__lottie_element_127)">
  2988. <g
  2989. transform="matrix(1,0,0,1,44,44)"
  2990. opacity="1"
  2991. style="display: block"
  2992. >
  2993. <g opacity="1" transform="matrix(1,0,0,1,0,0)">
  2994. <path
  2995. fill="rgb(255,255,255)"
  2996. fill-opacity="1"
  2997. d=" M-14,-20 C-14,-20 -26,-20 -26,-20 C-27.049999237060547,-20 -27.920000076293945,-19.18000030517578 -27.989999771118164,-18.149999618530273 C-27.989999771118164,-18.149999618530273 -28,-18 -28,-18 C-28,-18 -28,-6 -28,-6 C-28,-4.949999809265137 -27.18000030517578,-4.079999923706055 -26.149999618530273,-4.010000228881836 C-26.149999618530273,-4.010000228881836 -26,-4 -26,-4 C-26,-4 -22,-4 -22,-4 C-20.950000762939453,-4 -20.079999923706055,-4.820000171661377 -20.010000228881836,-5.849999904632568 C-20.010000228881836,-5.849999904632568 -20,-6 -20,-6 C-20,-6 -20,-12 -20,-12 C-20,-12 -14,-12 -14,-12 C-12.949999809265137,-12 -12.079999923706055,-12.819999694824219 -12.010000228881836,-13.850000381469727 C-12.010000228881836,-13.850000381469727 -12,-14 -12,-14 C-12,-14 -12,-18 -12,-18 C-12,-19.049999237060547 -12.819999694824219,-19.920000076293945 -13.850000381469727,-19.989999771118164 C-13.850000381469727,-19.989999771118164 -14,-20 -14,-20z M26,-20 C26,-20 14,-20 14,-20 C12.949999809265137,-20 12.079999923706055,-19.18000030517578 12.010000228881836,-18.149999618530273 C12.010000228881836,-18.149999618530273 12,-18 12,-18 C12,-18 12,-14 12,-14 C12,-12.949999809265137 12.819999694824219,-12.079999923706055 13.850000381469727,-12.010000228881836 C13.850000381469727,-12.010000228881836 14,-12 14,-12 C14,-12 20,-12 20,-12 C20,-12 20,-6 20,-6 C20,-4.949999809265137 20.81999969482422,-4.079999923706055 21.850000381469727,-4.010000228881836 C21.850000381469727,-4.010000228881836 22,-4 22,-4 C22,-4 26,-4 26,-4 C27.049999237060547,-4 27.920000076293945,-4.820000171661377 27.989999771118164,-5.849999904632568 C27.989999771118164,-5.849999904632568 28,-6 28,-6 C28,-6 28,-18 28,-18 C28,-19.049999237060547 27.18000030517578,-19.920000076293945 26.149999618530273,-19.989999771118164 C26.149999618530273,-19.989999771118164 26,-20 26,-20z M-22,4 C-22,4 -26,4 -26,4 C-27.049999237060547,4 -27.920000076293945,4.820000171661377 -27.989999771118164,5.849999904632568 C-27.989999771118164,5.849999904632568 -28,6 -28,6 C-28,6 -28,18 -28,18 C-28,19.049999237060547 -27.18000030517578,19.920000076293945 -26.149999618530273,19.989999771118164 C-26.149999618530273,19.989999771118164 -26,20 -26,20 C-26,20 -14,20 -14,20 C-12.949999809265137,20 -12.079999923706055,19.18000030517578 -12.010000228881836,18.149999618530273 C-12.010000228881836,18.149999618530273 -12,18 -12,18 C-12,18 -12,14 -12,14 C-12,12.949999809265137 -12.819999694824219,12.079999923706055 -13.850000381469727,12.010000228881836 C-13.850000381469727,12.010000228881836 -14,12 -14,12 C-14,12 -20,12 -20,12 C-20,12 -20,6 -20,6 C-20,4.949999809265137 -20.81999969482422,4.079999923706055 -21.850000381469727,4.010000228881836 C-21.850000381469727,4.010000228881836 -22,4 -22,4z M26,4 C26,4 22,4 22,4 C20.950000762939453,4 20.079999923706055,4.820000171661377 20.010000228881836,5.849999904632568 C20.010000228881836,5.849999904632568 20,6 20,6 C20,6 20,12 20,12 C20,12 14,12 14,12 C12.949999809265137,12 12.079999923706055,12.819999694824219 12.010000228881836,13.850000381469727 C12.010000228881836,13.850000381469727 12,14 12,14 C12,14 12,18 12,18 C12,19.049999237060547 12.819999694824219,19.920000076293945 13.850000381469727,19.989999771118164 C13.850000381469727,19.989999771118164 14,20 14,20 C14,20 26,20 26,20 C27.049999237060547,20 27.920000076293945,19.18000030517578 27.989999771118164,18.149999618530273 C27.989999771118164,18.149999618530273 28,18 28,18 C28,18 28,6 28,6 C28,4.949999809265137 27.18000030517578,4.079999923706055 26.149999618530273,4.010000228881836 C26.149999618530273,4.010000228881836 26,4 26,4z M28,-28 C32.41999816894531,-28 36,-24.420000076293945 36,-20 C36,-20 36,20 36,20 C36,24.420000076293945 32.41999816894531,28 28,28 C28,28 -28,28 -28,28 C-32.41999816894531,28 -36,24.420000076293945 -36,20 C-36,20 -36,-20 -36,-20 C-36,-24.420000076293945 -32.41999816894531,-28 -28,-28 C-28,-28 28,-28 28,-28z"
  2998. ></path>
  2999. </g>
  3000. </g>
  3001. </g>
  3002. </symbol>
  3003.  
  3004. <symbol
  3005. id="widescreen-quit"
  3006. viewBox="0 0 88 88"
  3007. preserveAspectRatio="xMidYMid meet"
  3008. >
  3009. <defs>
  3010. <clipPath id="__lottie_element_132">
  3011. <rect width="88" height="88" x="0" y="0"></rect>
  3012. </clipPath>
  3013. </defs>
  3014. <g clip-path="url(#__lottie_element_132)">
  3015. <g
  3016. transform="matrix(1,0,0,1,44,44)"
  3017. opacity="1"
  3018. style="display: block"
  3019. >
  3020. <g opacity="1" transform="matrix(1,0,0,1,0,0)">
  3021. <path
  3022. fill="rgb(255,255,255)"
  3023. fill-opacity="1"
  3024. d=" M-14,-20 C-14,-20 -18,-20 -18,-20 C-19.049999237060547,-20 -19.920000076293945,-19.18000030517578 -19.989999771118164,-18.149999618530273 C-19.989999771118164,-18.149999618530273 -20,-18 -20,-18 C-20,-18 -20,-12 -20,-12 C-20,-12 -26,-12 -26,-12 C-27.049999237060547,-12 -27.920000076293945,-11.180000305175781 -27.989999771118164,-10.149999618530273 C-27.989999771118164,-10.149999618530273 -28,-10 -28,-10 C-28,-10 -28,-6 -28,-6 C-28,-4.949999809265137 -27.18000030517578,-4.079999923706055 -26.149999618530273,-4.010000228881836 C-26.149999618530273,-4.010000228881836 -26,-4 -26,-4 C-26,-4 -14,-4 -14,-4 C-12.949999809265137,-4 -12.079999923706055,-4.820000171661377 -12.010000228881836,-5.849999904632568 C-12.010000228881836,-5.849999904632568 -12,-6 -12,-6 C-12,-6 -12,-18 -12,-18 C-12,-19.049999237060547 -12.819999694824219,-19.920000076293945 -13.850000381469727,-19.989999771118164 C-13.850000381469727,-19.989999771118164 -14,-20 -14,-20z M18,-20 C18,-20 14,-20 14,-20 C12.949999809265137,-20 12.079999923706055,-19.18000030517578 12.010000228881836,-18.149999618530273 C12.010000228881836,-18.149999618530273 12,-18 12,-18 C12,-18 12,-6 12,-6 C12,-4.949999809265137 12.819999694824219,-4.079999923706055 13.850000381469727,-4.010000228881836 C13.850000381469727,-4.010000228881836 14,-4 14,-4 C14,-4 26,-4 26,-4 C27.049999237060547,-4 27.920000076293945,-4.820000171661377 27.989999771118164,-5.849999904632568 C27.989999771118164,-5.849999904632568 28,-6 28,-6 C28,-6 28,-10 28,-10 C28,-11.050000190734863 27.18000030517578,-11.920000076293945 26.149999618530273,-11.989999771118164 C26.149999618530273,-11.989999771118164 26,-12 26,-12 C26,-12 20,-12 20,-12 C20,-12 20,-18 20,-18 C20,-19.049999237060547 19.18000030517578,-19.920000076293945 18.149999618530273,-19.989999771118164 C18.149999618530273,-19.989999771118164 18,-20 18,-20z M-14,4 C-14,4 -26,4 -26,4 C-27.049999237060547,4 -27.920000076293945,4.820000171661377 -27.989999771118164,5.849999904632568 C-27.989999771118164,5.849999904632568 -28,6 -28,6 C-28,6 -28,10 -28,10 C-28,11.050000190734863 -27.18000030517578,11.920000076293945 -26.149999618530273,11.989999771118164 C-26.149999618530273,11.989999771118164 -26,12 -26,12 C-26,12 -20,12 -20,12 C-20,12 -20,18 -20,18 C-20,19.049999237060547 -19.18000030517578,19.920000076293945 -18.149999618530273,19.989999771118164 C-18.149999618530273,19.989999771118164 -18,20 -18,20 C-18,20 -14,20 -14,20 C-12.949999809265137,20 -12.079999923706055,19.18000030517578 -12.010000228881836,18.149999618530273 C-12.010000228881836,18.149999618530273 -12,18 -12,18 C-12,18 -12,6 -12,6 C-12,4.949999809265137 -12.819999694824219,4.079999923706055 -13.850000381469727,4.010000228881836 C-13.850000381469727,4.010000228881836 -14,4 -14,4z M26,4 C26,4 14,4 14,4 C12.949999809265137,4 12.079999923706055,4.820000171661377 12.010000228881836,5.849999904632568 C12.010000228881836,5.849999904632568 12,6 12,6 C12,6 12,18 12,18 C12,19.049999237060547 12.819999694824219,19.920000076293945 13.850000381469727,19.989999771118164 C13.850000381469727,19.989999771118164 14,20 14,20 C14,20 18,20 18,20 C19.049999237060547,20 19.920000076293945,19.18000030517578 19.989999771118164,18.149999618530273 C19.989999771118164,18.149999618530273 20,18 20,18 C20,18 20,12 20,12 C20,12 26,12 26,12 C27.049999237060547,12 27.920000076293945,11.180000305175781 27.989999771118164,10.149999618530273 C27.989999771118164,10.149999618530273 28,10 28,10 C28,10 28,6 28,6 C28,4.949999809265137 27.18000030517578,4.079999923706055 26.149999618530273,4.010000228881836 C26.149999618530273,4.010000228881836 26,4 26,4z M28,-28 C32.41999816894531,-28 36,-24.420000076293945 36,-20 C36,-20 36,20 36,20 C36,24.420000076293945 32.41999816894531,28 28,28 C28,28 -28,28 -28,28 C-32.41999816894531,28 -36,24.420000076293945 -36,20 C-36,20 -36,-20 -36,-20 C-36,-24.420000076293945 -32.41999816894531,-28 -28,-28 C-28,-28 28,-28 28,-28z"
  3025. ></path>
  3026. </g>
  3027. </g>
  3028. </g>
  3029. </symbol>
  3030.  
  3031. <symbol id="question" width="1em" height="1em" viewBox="0 0 22 22">
  3032. <path fill="currentColor" d="M6 16l-3 3V5a2 2 0 012-2h12a2 2 0 012 2v9a2 2 0 01-2 2H6zm4-4v2h2v-2h-2zm2-.998c0-.34.149-.523.636-.925.022-.018.296-.24.379-.31a5.81 5.81 0 00.173-.152C13.705 9.145 14 8.656 14 8a3 3 0 00-5.698-1.314c-.082.17-.153.41-.213.72A.5.5 0 008.581 8h1.023a.5.5 0 00.476-.348.851.851 0 01.114-.244A.999.999 0 0112 8c0 1.237-2 1.16-2 3h2z"></path>
  3033. </symbol>
  3034. </svg>
  3035.  
  3036. <template id="plyr__next">
  3037. <button
  3038. class="plyr__controls__item plyr__control plyr__next plyr__custom"
  3039. type="button"
  3040. data-plyr="next"
  3041. aria-label="Next"
  3042. >
  3043. <svg focusable="false">
  3044. <use xlink:href="#next"></use>
  3045. </svg>
  3046. <span class="plyr__tooltip">\u4E0B\u4E00\u96C6(<k-shortcuts-tip command="${Shortcuts.Commands.next}"></k-shortcuts-tip>)</span>
  3047. </button>
  3048. </template>
  3049.  
  3050. <template id="plyr__widescreen">
  3051. <button
  3052. class="plyr__controls__item plyr__control plyr__widescreen plyr__custom"
  3053. type="button"
  3054. data-plyr="widescreen"
  3055. aria-label="widescreen"
  3056. >
  3057. <svg class="icon--not-pressed" focusable="false">
  3058. <use xlink:href="#widescreen"></use>
  3059. </svg>
  3060. <svg class="icon--pressed" focusable="false">
  3061. <use xlink:href="#widescreen-quit"></use>
  3062. </svg>
  3063. <span class="label--not-pressed plyr__tooltip">\u7F51\u9875\u5168\u5C4F(<k-shortcuts-tip command="${Shortcuts.Commands.toggleWidescreen}"></k-shortcuts-tip>)</span>
  3064. <span class="label--pressed plyr__tooltip">\u9000\u51FA\u7F51\u9875\u5168\u5C4F(<k-shortcuts-tip command="${Shortcuts.Commands.toggleWidescreen}"></k-shortcuts-tip>)</span>
  3065. </button>
  3066. </template>
  3067.  
  3068. `;
  3069. $("body").append(icons);
  3070. const loadingHTML = `
  3071. <div id="k-player-loading" style="display: none">
  3072. <div class="k-player-center">
  3073. <div class="k-player-tsuma"></div>
  3074. <div class="lds-spinner">
  3075. <div></div>
  3076. <div></div>
  3077. <div></div>
  3078. <div></div>
  3079. <div></div>
  3080. <div></div>
  3081. <div></div>
  3082. <div></div>
  3083. <div></div>
  3084. <div></div>
  3085. <div></div>
  3086. <div></div>
  3087. </div>
  3088. </div>
  3089. </div>
  3090. `;
  3091. const errorHTML = `
  3092. <div id="k-player-error" style="display: none">
  3093. <div class="k-player-center">
  3094. <div class="k-player-error-img"></div>
  3095. <div class="k-player-tsuma"></div>
  3096. <div class="k-player-error-info"></div>
  3097. </div>
  3098. </div>`;
  3099. const pipHTML = `
  3100. <div id="k-player-pip" style="display: none">
  3101. <div class="k-player-center">
  3102. <div class="k-player-tsuma"></div>
  3103. </div>
  3104. </div>`;
  3105. const speedList = [0.5, 0.75, 1, 1.25, 1.5, 2, 2.5, 3, 3.5, 4];
  3106. const createSpeedHTML = () => popover({
  3107. target: `
  3108. <div id="k-speed" class="plyr__controls__item k-popover k-text-btn">
  3109. <span id="k-speed-text" class="k-text-btn-text">\u500D\u901F</span>
  3110. </div>
  3111. `,
  3112. overlay: `<ul class="k-menu">
  3113. ${[...speedList].reverse().map(
  3114. (speed) => `<li class="k-menu-item k-speed-item" data-speed="${speed}">${speed}x</li>`
  3115. ).join("")}
  3116. </ul>`
  3117. });
  3118. const createSettingsHTML = () => popover({
  3119. target: `
  3120. <button id="k-settings" type="button" class="plyr__control plyr__controls__item">
  3121. <svg><use href="#plyr-settings" /></svg>
  3122. </button>
  3123. `,
  3124. overlay: `
  3125. <div class="k-settings-list">
  3126. <label class="k-settings-item">
  3127. <input type="checkbox" name="showSearchActions" />
  3128. \u663E\u793A\u753B\u8D28
  3129. </label>
  3130. <label class="k-settings-item">
  3131. <input type="checkbox" name="autoplay" />
  3132. \u81EA\u52A8\u64AD\u653E
  3133. </label>
  3134. <label class="k-settings-item">
  3135. <input type="checkbox" name="autoNext" />
  3136. \u81EA\u52A8\u4E0B\u4E00\u96C6
  3137. </label>
  3138. <label class="k-settings-item">
  3139. <input type="checkbox" name="showPlayLarge" />
  3140. \u663E\u793A\u64AD\u653E\u56FE\u6807
  3141. </label>
  3142. <label class="k-settings-item">
  3143. <input type="checkbox" name="continuePlay" />
  3144. \u8BB0\u5FC6\u64AD\u653E\u4F4D\u7F6E
  3145. </label>
  3146. <label class="k-settings-item">
  3147. <input type="checkbox" name="showProgress" />
  3148. \u663E\u793A\u5E95\u90E8\u8FDB\u5EA6\u6761
  3149. </label>
  3150. </div>
  3151. `
  3152. });
  3153. const createSearchActionsHTML = () => popover({
  3154. target: `
  3155. <div class="plyr__controls__item k-popover k-text-btn">
  3156. <span class="k-text-btn-text">\u753B\u8D28</span>
  3157. </div>
  3158. `,
  3159. overlay: `<ul class="k-menu"></ul>`
  3160. });
  3161. const progressHTML = `
  3162. <div class="k-player-progress">
  3163. <div class="k-player-progress-current"></div>
  3164. <div class="k-player-progress-buffer"></div>
  3165. </div>
  3166. `;
  3167. const i18n = {
  3168. restart: "\u91CD\u64AD",
  3169. rewind: "\u5FEB\u9000 {seektime}s",
  3170. play: "\u64AD\u653E(\u7A7A\u683C\u952E)",
  3171. pause: "\u6682\u505C(\u7A7A\u683C\u952E)",
  3172. fastForward: "\u5FEB\u8FDB {seektime}s",
  3173. seek: "Seek",
  3174. seekLabel: "{currentTime} / {duration}",
  3175. played: "\u5DF2\u64AD\u653E",
  3176. buffered: "\u5DF2\u7F13\u51B2",
  3177. currentTime: "\u5F53\u524D\u65F6\u95F4",
  3178. duration: "\u7247\u957F",
  3179. volume: "\u97F3\u91CF",
  3180. mute: "\u9759\u97F3(M)",
  3181. unmute: "\u53D6\u6D88\u9759\u97F3(M)",
  3182. enableCaptions: "\u663E\u793A\u5B57\u5E55",
  3183. disableCaptions: "\u9690\u85CF\u5B57\u5E55",
  3184. download: "\u4E0B\u8F7D",
  3185. enterFullscreen: "\u8FDB\u5165\u5168\u5C4F(F)",
  3186. exitFullscreen: "\u9000\u51FA\u5168\u5C4F(F)",
  3187. frameTitle: "\u6807\u9898\u540D\u79F0\uFF1A {title}",
  3188. captions: "\u5B57\u5E55",
  3189. settings: "\u8BBE\u7F6E",
  3190. menuBack: "\u8FD4\u56DE\u4E0A\u7EA7",
  3191. speed: "\u500D\u901F",
  3192. normal: "1.0x",
  3193. quality: "\u5206\u8FA8\u7387",
  3194. loop: "\u5FAA\u73AF",
  3195. start: "\u5F00\u59CB",
  3196. end: "\u7ED3\u675F",
  3197. all: "\u5168\u90E8",
  3198. reset: "\u91CD\u7F6E",
  3199. disabled: "\u7981\u7528",
  3200. enabled: "\u542F\u7528",
  3201. advertisement: "\u5E7F\u544A",
  3202. qualityBadge: {
  3203. 2160: "4K",
  3204. 1440: "HD",
  3205. 1080: "HD",
  3206. 720: "HD",
  3207. 576: "SD",
  3208. 480: "SD"
  3209. }
  3210. };
  3211.  
  3212. var css$a = "#k-player-wrapper {\n position: relative;\n width: 100%;\n height: 100%;\n background: #000;\n overflow: hidden;\n font-size: 14px;\n --k-player-error-background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWEAAAEQCAMAAABWXzWBAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAB+UExURUdwTP/v3zJRbd6wpUZuiR4eJZKUmcbGxispL8bIzQoHCJqanhQUGEFkfaysr6Khpb+/wTBGWSAQET4iJLa3ujc5P4F9gMPExyYwPouLjmJVWX1fX08vMUtJTWhHQP///y8XGWhmaXhydOfm5uTEts+mmuLX0aN9c/fi07uUioFWbdMAAAABdFJOUwBA5thmAAAgAElEQVR42uyd6XKjOhCFp1xBrBYCCwnhcMs4VX7/R7xqSYDA4CWB2I7VMzUVk+THfD45vagh//65cOHChQsXLly4cOHChYv3i/3ucDjs9g7EarHLIxmO8ZqAC1Yoxg7GKh5xiALsE+EYryfhhPkyKAuiKD98OiKLE44K6qvAjScZ7yrHZFmTyKOj30ZaJ84qVjCJtCPsE1SAjJ1VLGsSxLeCaKtwYBaLQ1T5w0hr58bL2rAYEfZp49x4SZPwsH8WAgo31+OtYsM6eKyKCpfwVrFhY8Yu4S1lw7qhO1dxKgrnFAvEZ56gScI+wahyTrFWotMqxvHROcUChAM6Q1iqONZO4UrjHxGuySxhGsfOKdYqJXxCcCoBI+Rqip8SbuYETA1i5mqKH0Rljy7PUh2hOEaCsdpN5n9QrEXMvxCcE1wFcL4kZex0vAJhPQcKkkgxlpBdWXF/wyGuEZaWnLLK6yA7Jd9VrM01zVNKrhXl3O1VrENYMiaYGcjulOkel7iZsDKM9FgkjvF9hI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FTkSuQmCC);\n --k-player-tsuma-length: 2;\n --plyr-line-height: 1;\n --plyr-tooltip-background: var(--k-player-background);\n --plyr-tooltip-color: var(--k-player-color);\n --plyr-range-thumb-background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAMAAADW3miqAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAGSUExURUdwTMnHx+vr6oyMjOnp6eTl5dbW1ry8wNXV1efl5O3t7ePj5NnZ2cTDw/Hx8Ozs7Onp6XFfcePj5OPj5OLi4tbW1ubm5t/f4M7NzuPj4+7u7t3d3eHj4+bl5eLi4+Hh4drc3NTU1M/Pz9DOzuHh4RESFQ8QEw0OERcXGOvq6iYlJh0bG87MyeHg3lRRThMUFsbDwGJfXYyJhiAfIHl2cdjW0y4rJ0FAPzIxMxscJvB5ZJiVkri1sqajoEpDbRMtPxIXGyckGelkXrGuq768ubWxrXNwbm9boYNzww6c4gGu8sdeVhNffJibTfOQYNWLS3zDkuymQz0yIJzMWd7ZTLq+RGN/QoOAfG9raKyqqYNltXZGPBllkTWJ1Wk1MWOEzCZMWAK8+AWTv8x5VAxMRRa8o7jQjTeKUFjKw6pwPaRaR7SEM8DOWFNeLU5EIv22RE9cnmItMQd2prJOTCGDpVNurGSk3TS380E5Vwlwj3d6toaXcHGilAh3cH3EYk7AdmlBMUrFnZd3J3NsK49rKEY6HBLcix4AAAAqdFJOUwAV9AfFuCYNMv/oqkUg+8nTA5OfblDggEBi2lyLv7V1dmdlfmj//////gxP1k4AAAKHSURBVDjLtZRXc9pAFIWFQAKJXl2x03bVCwgJ0XHDvfcS917Te+LU/50VMI7BJjN5yNFodnb0Sbv37LnCsH+S00UGb09J5z1MGKdDtpupJ04TrjvQE65QoEJke0ck0uEhu2hxgIvbmhhv5yDPJjka5yzRPjUtFHxdTVAHl2CglsxVErKcSOVW0wyTlkKNjM0h8hCgi2EYdAMWAsCu+hv2ThK+JGgWU/F139qVK0Al0YeaBPkc57ipkPRLK8odBlFsigrUKaebSoB7GEQpFaruQ4RbBi0EkSu91cU68xpsSfGDnSSC2iiZAS0FZaoNOeQfEuBfICEfsGEevMLUlhdqFSrVAUKlVgyTwqNYr5S2IOX5y/HTOQCEi6Oj/TKApYkXG6UqlJa6sbBoWG9s9vdnp6bn2KX5L9cHn8ul3bGx0acl9AQaIoHFVas2YRwxU7M/Lxfn52e+Hey/30HM1rMygjQ1gDksCBr92dOv01dnPxbOl5Zmjid2d0YnXo8MZ6AFxbDa8Wvj2U1wcvX9YmGxj5853n71doN5hyDLKdGPuXUTLaesZ/dOZmd/9S0uTE4efspsv9kqDq8VrTJNvQeL1Lxk1/emzy4BnJs8P/xownLxw8haMWNVZ7npoutJEvqspAHWMKpjxuSVqgVJ2oPZ3aLZ4DiEt0doqHGUzyieVFofC0hRVjvYw1Ki5eExst5TDbrXobcKHZTFWD2aLoe0bMC7GWe0FT0WrWc86A3jaspkUTfVUWi1FZ8YouLtf9rFHiVwvZCSTV4TWJYVNCOdyKlS4HFjozs93Q5a0sXB/MDAUF4VJTzmfuS9798TfRAK9xAE4Q63PWz3Blv+pYJ2pCAWxP6PfgNybqCJigGJ+wAAAABJRU5ErkJggg==) no-repeat\n center/contain;\n --plyr-range-thumb-width: 18px;\n --plyr-range-thumb-height: 18px;\n --plyr-color-main: var(--k-player-primary-color);\n}\n#k-player-wrapper .plyr__captions {\n padding-bottom: 4.4vh;\n padding-bottom: max(20px, 4.4vh);\n}\n#k-player-wrapper .plyr__caption {\n font-size: 2.4vw;\n color: white;\n --w: 2px;\n --b: 2px;\n --c: black;\n text-shadow: var(--w) var(--w) var(--b) var(--c), calc(-1 * var(--w)) calc(-1 * var(--w)) var(--b) var(--c), var(--w) calc(-1 * var(--w)) var(--b) var(--c), calc(-1 * var(--w)) var(--w) var(--b) var(--c);\n background: transparent;\n}\n@media (max-width: 576px) {\n #k-player-wrapper .plyr__caption {\n font-size: 3vw;\n }\n}\n#k-player-wrapper .plyr--full-ui.plyr--video input[type=range] {\n cursor: pointer;\n}\n#k-player-wrapper .plyr--full-ui.plyr--video input[type=range]::-webkit-slider-thumb {\n transform: scale(0);\n}\n#k-player-wrapper .plyr--full-ui.plyr--video input[type=range]:hover::-webkit-slider-thumb {\n transform: scale(1);\n}\n#k-player-wrapper .plyr--full-ui.plyr--video input[type=range]:active::-webkit-slider-thumb {\n transition: all 0.1s linear;\n box-shadow: none;\n}\n#k-player-wrapper .plyr--full-ui.plyr--video input[type=range].shake-0:active::-webkit-slider-thumb {\n transform: scale(1.3) rotate(15deg);\n}\n#k-player-wrapper .plyr--full-ui.plyr--video input[type=range].shake-1:active::-webkit-slider-thumb {\n transform: scale(1.3) rotate(-15deg);\n}\n#k-player-wrapper.k-player-widescreen {\n position: fixed;\n left: 0;\n top: 0;\n z-index: 10000;\n}\n#k-player-wrapper .k-player-contianer {\n width: 100%;\n height: 100%;\n}\n#k-player-wrapper .k-player-controls-spacer {\n flex: 1;\n}\n#k-player-wrapper #k-player-loading,\n#k-player-wrapper #k-player-error {\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n z-index: 10;\n font-size: 66px;\n color: white;\n pointer-events: none;\n background: black;\n}\n#k-player-wrapper .k-player-error-img {\n background: var(--k-player-error-background) no-repeat center/contain;\n width: 200px;\n height: 200px;\n opacity: 0.4;\n}\n#k-player-wrapper .k-player-error-info {\n text-align: center;\n padding: 24px;\n font-size: 18px;\n}\n#k-player-wrapper #k-player-pip {\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n z-index: 10;\n pointer-events: none;\n}\n#k-player-wrapper .k-player-tsuma {\n width: 200px;\n height: 200px;\n position: absolute;\n bottom: 0;\n right: 0;\n background: no-repeat center/contain;\n opacity: 0.1;\n z-index: -1;\n pointer-events: none;\n}\n#k-player-wrapper .k-player-tsuma[data-bg-idx=\"0\"] {\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATYAAAE2CAMAAADcYk6bAAAABGdBTUEAALGPC/x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b/gU0TF8cdhO1K9RE0gimlRDzBtXBt7542tstNc8KN/IHFzezRVS2Z1xFvWarZD5KRvr5DzV5vXoqWtJfH1c/fN+/Rdxh/FeasVwlbQnhm2fnw+0y7QuJmNDDqTFzr6V1VjOxYr0djqtH7KRt4oo0Pi4rYHpKaKFgIIO0yFO1gsnEtICxJFjtTunIkemNqjIjM9nv0M85+Bxg1fVV3bHmFN2rEaCdUVBYZNVOihV0c4UegwgmEUKn5RfTfHx0HJxYUd7m7aziKo9N9z2SKi1k5We1vUNU2DU1Iy0jGbGbaX6eLwOjwyebyF7Q+EDaStGukQ60JMxxxRp/qN+Psib6/TXO5lh9GO2SzyX9iScdJ+yc6/Q5BgbHF3WgWG44+DrnTOAVudZkHGzeTxBlulXMLRzizBmmmhtLQE/y3ErWgdyNxHt254+5IkbxIHC7cHQxG9tpCqojFtfXkSNqykI61iwJZnzzILMm76iNJga7hdA2kT2NjD9WFozTxRp+ukvtzcC+9cWsq0aiLJu5Zu1Le3yXonUztG1nZIW9rmuBj6hl9X2BlX6pGWgo5q9TfYpLStpGfYVnKoR75gnacQt3K8xHZTH7YuS8ZwJCAWtrXtu4+OiWdlkeK3sMVTe+D6ByzYsqLdvun7ZuA3iZlT30L4hH+AlH60kAnxVQAAAABJRU5ErkJggg==);\n}\n#k-player-wrapper .k-player-tsuma[data-bg-idx=\"1\"] {\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATYAAAE2CAMAAADcYk6bAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAB+UExURUdwTMKHkf++sQYGBgEBATs3PP///wAAAP/v38bGxg4ODhYVFfapocPDwx8dHjIwMEdFRSgmJ2FeXlRRUW5ra728vIeHh3p6eZSUlKqqqaCgn+zs7LOzs/bi09TT08O0rZ3D0dF2eeTVyOHg4MHc76Btb9THusOco+GXkseRisc763UAAAAIdFJOUwD///////+AFXA4nwAAIABJREFUeNrsnImuozYUhhsxngy2vLJzKZGKMnn/N6wXE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nS4um7UG+zeyL1fu0B6AV1xYHi8+cjNfpB7u6LA08Z81B+Rlz8QPYOnbt+QIVlUrnzpAaF3Zuxt78RZ4FHb2t+HHz+MM6a/kKlxsX1hZ7C1s8WHFParXE6VJqhqbhtKQfqQPbvYUt4xN6dnHdTUuZj0VPz9/QIP21bZe/C/SjdFknXJ+N2uXeyWgxeWYa0tsX54QcL+3UYiMPNguTiqt5N4nxnE8Qfed6T49Ryfxmhj+OMNE8OOYR7XJFlr+RW/AI8QVXV93g8SdlBuSPsfE2iJ5X68aqjj6ATTyALfEJSisxHs6wdfl00cUzX00/T4bNm20WhZB/zSd3eUq1M56D54mbSSnx4GgMrmBUVdhEMhfzA9hi49ZrcToECA+kGgr7XS56Dkjp/bC8s7R+aCqYNp5EwyWZTPMqrZNgfhUob0wbhgfs97Alxq23DSroDmRxK86sApOk55NmlYTt0KXq8pPjAAUGsjMPNkPRcUyiGoinsDU/gI2JeEiNGWFrd3AHei9NIJrKB79W+xsjWRK2G/rBb84C8NyQhH921xm36ca0YXRwC5u8lzYZaog8kx2EWimha32nY/CXQykd5fzdPSLjSsc2zz/8i1jbTa8Q6KSq/8Uj2C6fIMnMSbP8FGcxm+JibBdD81jJXngFPhsivH4NW5IDaYPpXzN8guP96itpk82vYOsochYKRR2rkY0or1g0HR0BiXdanvMi1yz9L2BLt2QvwocNtfgmIM1J2w9hs66UMcP79zPR14iKtBkc4qMvEBynjY1P49Hv1z1Plrb9464k4gRY/YdOpS3B8TYB4sHWsM7MRLaUHWy6rinvWDyfOCLyEMNv87hsaX7H+/n81/9ZNrkhKCpo7gAAAABJRU5ErkJggg==);\n}\n#k-player-wrapper .k-player-center {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n}\n#k-player-wrapper #k-player-header {\n transform: translateY(0);\n transition: transform 0.3s;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n padding: 8px;\n text-align: right;\n}\n#k-player-wrapper #k-player-header .k-player-question-icon {\n font-size: 24px;\n width: 1em;\n height: 1em;\n color: white;\n cursor: pointer;\n}\n#k-player-wrapper .plyr--hide-controls #k-player-header {\n transform: translateY(-100%);\n}\n#k-player-wrapper .plyr__poster {\n pointer-events: none;\n}\n#k-player-wrapper .plyr {\n width: 100%;\n height: 100%;\n}\n#k-player-wrapper .plyr__control svg {\n font-size: 18px;\n}\n#k-player-wrapper video {\n display: block;\n}\n#k-player-wrapper .plyr__next svg {\n transform: scale(1.7);\n}\n#k-player-wrapper .plyr__widescreen svg {\n transform: scale(1.3);\n}\n#k-player-wrapper .plyr--hide-cursor {\n cursor: none;\n}\n#k-player-wrapper .plyr__control span:not(.plyr__tooltip) {\n color: inherit;\n}\n#k-player-wrapper .plyr--hide-controls .k-player-progress {\n opacity: 1;\n transition: opacity 0.3s ease-in 0.2s;\n}\n#k-player-wrapper .k-player-fullscreen .k-player-progress,\n#k-player-wrapper .k-player-fullscreen [data-plyr=widescreen] {\n display: none;\n}\n#k-player-wrapper .k-player-progress {\n opacity: 0;\n transition: opacity 0.2s ease-out;\n height: 2px;\n width: 100%;\n position: absolute;\n bottom: 0;\n}\n#k-player-wrapper .k-player-progress .k-player-progress-current {\n position: absolute;\n left: 0;\n top: 0;\n height: 100%;\n z-index: 2;\n background-color: var(--k-player-primary-color);\n}\n#k-player-wrapper .k-player-progress .k-player-progress-buffer {\n position: absolute;\n left: 0;\n top: 0;\n z-index: 1;\n height: 100%;\n background-color: var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25));\n}\n#k-player-wrapper .plyr__controls {\n z-index: 20;\n}\n#k-player-wrapper .plyr__controls .plyr__controls__item:first-child {\n margin-right: 0;\n}\n#k-player-wrapper .plyr__controls .plyr__controls__item.plyr__progress__container {\n position: absolute;\n top: 15px;\n left: 10px;\n right: 10px;\n --plyr-range-track-height: 2px;\n}\n#k-player-wrapper .plyr__controls .plyr__controls__item.plyr__progress__container:hover {\n --plyr-range-track-height: 4px;\n}\n#k-player-wrapper .plyr__controls .k-text-btn {\n display: inline-block;\n padding: 0 8px;\n text-align: center;\n}\n#k-player-wrapper .plyr__controls .k-text-btn-text {\n line-height: 32px;\n user-select: none;\n}\n@media (max-width: 576px) {\n #k-player-wrapper .plyr__controls {\n padding-top: 30px;\n }\n #k-player-wrapper [data-plyr=pip],\n #k-player-wrapper [data-plyr=widescreen],\n #k-player-wrapper .plyr__volume {\n display: none;\n }\n}\n\n.lds-spinner {\n color: official;\n display: inline-block;\n position: relative;\n width: 80px;\n height: 80px;\n}\n.lds-spinner div {\n transform-origin: 40px 40px;\n animation: lds-spinner 1.2s linear infinite;\n}\n.lds-spinner div::after {\n content: \" \";\n display: block;\n position: absolute;\n top: 3px;\n left: 37px;\n width: 6px;\n height: 18px;\n border-radius: 20%;\n background: #fff;\n}\n.lds-spinner div:nth-child(1) {\n transform: rotate(0deg);\n animation-delay: -1.1s;\n}\n.lds-spinner div:nth-child(2) {\n transform: rotate(30deg);\n animation-delay: -1s;\n}\n.lds-spinner div:nth-child(3) {\n transform: rotate(60deg);\n animation-delay: -0.9s;\n}\n.lds-spinner div:nth-child(4) {\n transform: rotate(90deg);\n animation-delay: -0.8s;\n}\n.lds-spinner div:nth-child(5) {\n transform: rotate(120deg);\n animation-delay: -0.7s;\n}\n.lds-spinner div:nth-child(6) {\n transform: rotate(150deg);\n animation-delay: -0.6s;\n}\n.lds-spinner div:nth-child(7) {\n transform: rotate(180deg);\n animation-delay: -0.5s;\n}\n.lds-spinner div:nth-child(8) {\n transform: rotate(210deg);\n animation-delay: -0.4s;\n}\n.lds-spinner div:nth-child(9) {\n transform: rotate(240deg);\n animation-delay: -0.3s;\n}\n.lds-spinner div:nth-child(10) {\n transform: rotate(270deg);\n animation-delay: -0.2s;\n}\n.lds-spinner div:nth-child(11) {\n transform: rotate(300deg);\n animation-delay: -0.1s;\n}\n.lds-spinner div:nth-child(12) {\n transform: rotate(330deg);\n animation-delay: 0s;\n}\n\n@keyframes lds-spinner {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n}";
  3213. injectCss(css$a,{});
  3214.  
  3215. function isUrl(text) {
  3216. return /^((https?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^&*?.\s])?\.)+[a-z]{2,6}\/?/.test(
  3217. text
  3218. );
  3219. }
  3220.  
  3221. function readAsText(file) {
  3222. return new Promise((resolve, reject) => {
  3223. const fd = new FileReader();
  3224. fd.onload = () => {
  3225. resolve(fd.result);
  3226. };
  3227. fd.readAsText(file);
  3228. });
  3229. }
  3230. async function parseSRTToVTT(file) {
  3231. function srtToVtt(srtContent2) {
  3232. const lines = srtContent2.split("\n");
  3233. let vttContent2 = "WEBVTT\n\n";
  3234. lines.forEach((line, index) => {
  3235. if (!line.match(/^\d+$/)) {
  3236. line = line.replace(/(\d{2}:\d{2}:\d{2}),(\d{3})/g, "$1.$2");
  3237. vttContent2 += line + "\n";
  3238. }
  3239. });
  3240. return vttContent2;
  3241. }
  3242. const srtContent = await readAsText(file);
  3243. const vttContent = srtToVtt(srtContent);
  3244. return new Blob([vttContent], { type: "text/vtt" });
  3245. }
  3246. async function parseASSToVTT(file) {
  3247. function assToVtt(assContent2) {
  3248. const lines = assContent2.split("\n");
  3249. let vttContent2 = "WEBVTT\n\n";
  3250. let formatParts = [];
  3251. const eventStartIdx = lines.findIndex((line) => line.includes("[Events]"));
  3252. const formatLine = lines.slice(eventStartIdx).find((line) => line.startsWith("Format:"));
  3253. if (!formatLine)
  3254. throw new Error("ASS\u6587\u4EF6\u683C\u5F0F\u9519\u8BEF\uFF0C\u672A\u627E\u5230events.format");
  3255. formatParts = formatLine.split(":")[1].split(",").map((part) => part.trim());
  3256. lines.forEach((line) => {
  3257. if (line.startsWith("Dialogue:")) {
  3258. const parts = line.split(",");
  3259. const formatMap = {};
  3260. formatParts.forEach((part, index) => {
  3261. formatMap[part] = parts[index].trim();
  3262. });
  3263. const timeStart = formatMap["Start"];
  3264. const timeEnd = formatMap["End"];
  3265. const text = formatMap["Text"];
  3266. const vttTimeStart = timeStart.replace(
  3267. /(\d+):(\d+):(\d+).(\d+)/,
  3268. (match, p1, p2, p3, p4) => {
  3269. return `${p1.padStart(2, "0")}:${p2.padStart(2, "0")}:${p3.padStart(
  3270. 2,
  3271. "0"
  3272. )}.${p4.padEnd(3, "0")}`;
  3273. }
  3274. );
  3275. const vttTimeEnd = timeEnd.replace(
  3276. /(\d+):(\d+):(\d+).(\d+)/,
  3277. (match, p1, p2, p3, p4) => {
  3278. return `${p1.padStart(2, "0")}:${p2.padStart(2, "0")}:${p3.padStart(
  3279. 2,
  3280. "0"
  3281. )}.${p4.padEnd(3, "0")}`;
  3282. }
  3283. );
  3284. vttContent2 += `${vttTimeStart} --> ${vttTimeEnd}
  3285. ${text}
  3286.  
  3287. `;
  3288. }
  3289. });
  3290. return vttContent2;
  3291. }
  3292. const assContent = await readAsText(file);
  3293. const vttContent = assToVtt(assContent);
  3294. return new Blob([vttContent], { type: "text/vtt" });
  3295. }
  3296. function parseSubtitles(file) {
  3297. if (file.name.match(/\.srt$/i)) {
  3298. return parseSRTToVTT(file);
  3299. }
  3300. if (file.name.match(/\.vtt$/i)) {
  3301. return file;
  3302. }
  3303. if (file.name.match(/\.ass$/i)) {
  3304. return parseASSToVTT(file);
  3305. }
  3306. throw new Error("\u4E0D\u53D7\u652F\u6301\u7684\u6587\u4EF6\u7C7B\u578B");
  3307. }
  3308.  
  3309. function sleep(ms) {
  3310. if (!ms) {
  3311. return new Promise((resolve) => {
  3312. requestAnimationFrame(resolve);
  3313. });
  3314. }
  3315. return new Promise((resolve) => {
  3316. setTimeout(resolve, ms);
  3317. });
  3318. }
  3319.  
  3320. var __defProp$3 = Object.defineProperty;
  3321. var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
  3322. var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
  3323. var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
  3324. var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
  3325. var __spreadValues$3 = (a, b) => {
  3326. for (var prop in b || (b = {}))
  3327. if (__hasOwnProp$3.call(b, prop))
  3328. __defNormalProp$3(a, prop, b[prop]);
  3329. if (__getOwnPropSymbols$3)
  3330. for (var prop of __getOwnPropSymbols$3(b)) {
  3331. if (__propIsEnum$3.call(b, prop))
  3332. __defNormalProp$3(a, prop, b[prop]);
  3333. }
  3334. return a;
  3335. };
  3336. const MediaErrorMessage = {
  3337. 1: "\u4F60\u4E2D\u6B62\u4E86\u5A92\u4F53\u64AD\u653E",
  3338. 2: "\u7F51\u7EDC\u9519\u8BEF",
  3339. 3: "\u6587\u4EF6\u635F\u574F",
  3340. 4: "\u8D44\u6E90\u6709\u95EE\u9898\u770B\u4E0D\u4E86",
  3341. 5: "\u8D44\u6E90\u88AB\u52A0\u5BC6\u4E86"
  3342. };
  3343. const defaultConfig$1 = {
  3344. customSeekTime: 85,
  3345. speed: 1,
  3346. continuePlay: true,
  3347. autoNext: true,
  3348. showProgress: true,
  3349. volume: 1,
  3350. showSearchActions: true,
  3351. autoplay: true,
  3352. showPlayLarge: false
  3353. };
  3354. const _KPlayer = class {
  3355. constructor(selector, opts = {}) {
  3356. this.isHoverControls = false;
  3357. this.speedList = speedList;
  3358. this.setCurrentTimeLogThrottled = throttle(() => {
  3359. if (this.currentTime > 3)
  3360. this.setCurrentTimeLog();
  3361. }, 1e3);
  3362. this.hideControlsDebounced = debounce(() => {
  3363. const dom = document.querySelector(".plyr");
  3364. if (!this.isHoverControls)
  3365. dom == null ? void 0 : dom.classList.add("plyr--hide-controls");
  3366. }, 1e3);
  3367. this.hideCursorDebounced = debounce(() => {
  3368. const dom = document.querySelector(".plyr");
  3369. dom == null ? void 0 : dom.classList.add("plyr--hide-cursor");
  3370. }, 1e3);
  3371. this.isJumped = false;
  3372. this.opts = opts;
  3373. this.$wrapper = $('<div id="k-player-wrapper"/>').replaceAll(selector);
  3374. this.$loading = $(loadingHTML);
  3375. this.$error = $(errorHTML);
  3376. this.$pip = $(pipHTML);
  3377. this.$video = (opts.video ? $(opts.video) : $("<video />")).attr({ id: "k-player", playsinline: true });
  3378. this.$progress = $(progressHTML);
  3379. this.$header = $('<div id="k-player-header"/>');
  3380. this.$wrapper.append(this.$video);
  3381. this.localConfigKey = "kplayer";
  3382. this.statusSessionKey = "k-player-status";
  3383. this.localPlayTimeKey = "k-player-play-time";
  3384. this.localConfig = Object.assign(
  3385. {},
  3386. defaultConfig$1,
  3387. gm.getItem(this.localConfigKey)
  3388. );
  3389. const isIOS = /ip(hone|od)/i.test(navigator.userAgent);
  3390. this.plyr = new Plyr("#k-player", __spreadValues$3({
  3391. autoplay: this.localConfig.autoplay,
  3392. keyboard: { global: false, focused: false },
  3393. controls: [
  3394. "play-large",
  3395. "play",
  3396. "progress",
  3397. "current-time",
  3398. "duration",
  3399. "mute",
  3400. "volume",
  3401. "pip",
  3402. "fullscreen"
  3403. ],
  3404. captions: { update: true, language: "zh", active: true },
  3405. storage: { enabled: false },
  3406. volume: this.localConfig.volume,
  3407. fullscreen: {
  3408. enabled: true,
  3409. iosNative: isIOS
  3410. },
  3411. i18n,
  3412. tooltips: {
  3413. controls: true,
  3414. seek: true
  3415. },
  3416. disableContextMenu: false,
  3417. loadSprite: false
  3418. }, opts));
  3419. this.$videoWrapper = this.$wrapper.find(".plyr");
  3420. this.$videoWrapper.find(".plyr__time--duration").after('<div class="plyr__controls__item k-player-controls-spacer"/>');
  3421. this.$videoWrapper.find('[data-plyr="pip"] .plyr__tooltip').html(
  3422. `\u753B\u4E2D\u753B(<k-shortcuts-tip command=${Shortcuts.Commands.togglePIP}></k-shortcuts-tip>)`
  3423. );
  3424. this.$videoWrapper.append(
  3425. this.$loading,
  3426. this.$error,
  3427. this.$pip,
  3428. this.$progress,
  3429. this.$header
  3430. );
  3431. this.message = new Message(this.$videoWrapper);
  3432. this.eventMap = {};
  3433. this.isWideScreen = false;
  3434. this.wideScreenBodyStyles = {};
  3435. this.tsumaLength = +getComputedStyle(this.$wrapper[0]).getPropertyValue("--k-player-tsuma-length").trim();
  3436. this.curentTsuma = -1;
  3437. this.injectSettings();
  3438. this.injectSpeed();
  3439. this.injectNext();
  3440. this.injectSreen();
  3441. this.injectSearchActions();
  3442. _KPlayer.plguinList.forEach((setup) => setup(this));
  3443. this.initEvent();
  3444. if (opts.eventToParentWindow) {
  3445. this.eventToParentWindow();
  3446. }
  3447. const status = session.getItem(this.statusSessionKey);
  3448. if (status) {
  3449. session.removeItem(this.statusSessionKey);
  3450. setTimeout(() => {
  3451. this.toggleWidescreen(status);
  3452. });
  3453. }
  3454. }
  3455. static register(setup) {
  3456. this.plguinList.push(setup);
  3457. }
  3458. async setCurrentTimeLog(time) {
  3459. time = Math.floor(time != null ? time : this.currentTime);
  3460. const store = local.getItem(this.localPlayTimeKey, {});
  3461. const key = await this.getPlayTimeStoreKey();
  3462. store[key] = time;
  3463. local.setItem(this.localPlayTimeKey, store);
  3464. }
  3465. async getCurrentTimeLog() {
  3466. const store = local.getItem(this.localPlayTimeKey, {});
  3467. const key = await this.getPlayTimeStoreKey();
  3468. return store[key];
  3469. }
  3470. async getPlayTimeStoreKey() {
  3471. return await runtime.getTopLocationHref();
  3472. }
  3473. async getAnimeScope() {
  3474. return await runtime.getAnimeScope();
  3475. }
  3476. async jumpToLogTime() {
  3477. if (this.isJumped)
  3478. return;
  3479. if (this.currentTime < 3) {
  3480. this.isJumped = true;
  3481. const logTime = await this.getCurrentTimeLog();
  3482. if (logTime && this.plyr.duration - logTime > 10) {
  3483. this.message.info(`\u5DF2\u81EA\u52A8\u8DF3\u8F6C\u81F3\u5386\u53F2\u64AD\u653E\u4F4D\u7F6E ${parseTime(logTime)}`);
  3484. this.currentTime = logTime;
  3485. }
  3486. }
  3487. }
  3488. initEvent() {
  3489. this.onDrop((e) => {
  3490. var _a, _b;
  3491. e.preventDefault();
  3492. const rawFiles = (_a = e.dataTransfer) == null ? void 0 : _a.files;
  3493. if (rawFiles) {
  3494. const files = Array.from(rawFiles);
  3495. const video = files.find((file) => file.type.includes("video"));
  3496. if (video) {
  3497. this.src = URL.createObjectURL(video);
  3498. }
  3499. const videoName = video == null ? void 0 : video.name.split(".")[0];
  3500. const subtitles = files.filter(
  3501. (file) => file.name.match(/\.(ass|vtt|srt)$/i)
  3502. );
  3503. if (subtitles.length) {
  3504. let subtitle;
  3505. if (videoName) {
  3506. subtitle = subtitles.find((o) => o.name.includes(videoName));
  3507. }
  3508. if (!subtitle)
  3509. subtitle = subtitles[0];
  3510. this.loadSubtitles(subtitle);
  3511. }
  3512. }
  3513. const text = (_b = e.dataTransfer) == null ? void 0 : _b.getData("text");
  3514. if (text && isUrl(text)) {
  3515. this.src = text;
  3516. }
  3517. });
  3518. this.on("loadstart", () => {
  3519. this.$loading.show();
  3520. this.hideError();
  3521. });
  3522. this.on("loadedmetadata", () => {
  3523. this.$loading.hide();
  3524. this.$searchActions.find(".k-text-btn-text").text(this.media.videoHeight + "P");
  3525. });
  3526. this.on("canplay", () => {
  3527. this.$loading.hide();
  3528. if (this.localConfig.autoplay) {
  3529. (async () => {
  3530. try {
  3531. await this.plyr.play();
  3532. } catch (error) {
  3533. } finally {
  3534. if (this.media.paused) {
  3535. window.addEventListener(
  3536. "click",
  3537. () => {
  3538. setTimeout(() => {
  3539. if (this.media.paused)
  3540. this.plyr.play();
  3541. }, 100);
  3542. },
  3543. { capture: true, once: true }
  3544. );
  3545. }
  3546. }
  3547. })();
  3548. }
  3549. if (this.localConfig.continuePlay) {
  3550. this.jumpToLogTime();
  3551. }
  3552. });
  3553. this.on("error", () => {
  3554. this.setCurrentTimeLog(0);
  3555. this.$searchActions.show();
  3556. const code = this.media.error.code;
  3557. this.$loading.hide();
  3558. this.showError(MediaErrorMessage[code] || this.src);
  3559. if (code === 3) {
  3560. const countKey = "skip-error-retry-count" + window.location.search;
  3561. let skipErrorRetryCount = parseInt(session.getItem(countKey) || "0");
  3562. if (skipErrorRetryCount < 3) {
  3563. skipErrorRetryCount++;
  3564. const duration = 2 * skipErrorRetryCount;
  3565. this.message.info(
  3566. `\u89C6\u9891\u6E90\u51FA\u73B0\u95EE\u9898\uFF0C\u7B2C${skipErrorRetryCount}\u6B21\u5C1D\u8BD5\u8DF3\u8FC7${duration}s\u9519\u8BEF\u7247\u6BB5`,
  3567. 4e3
  3568. ).then(() => {
  3569. this.trigger("skiperror", 2 * skipErrorRetryCount);
  3570. });
  3571. session.setItem(countKey, skipErrorRetryCount.toString());
  3572. } else {
  3573. this.message.info(`\u89C6\u9891\u6E90\u51FA\u73B0\u95EE\u9898\uFF0C\u591A\u6B21\u5C1D\u8BD5\u5931\u8D25\uFF0C\u8BF7\u624B\u52A8\u8DF3\u8FC7\u9519\u8BEF\u7247\u6BB5`, 4e3).then(() => {
  3574. this.trigger("skiperror", 0);
  3575. });
  3576. session.removeItem(countKey);
  3577. }
  3578. } else {
  3579. this.message.info("\u89C6\u9891\u64AD\u653E\u5931\u8D25\uFF0C\u94FE\u63A5\u8D44\u6E90\u53EF\u80FD\u5931\u6548\u4E86", 4e3);
  3580. }
  3581. });
  3582. this.on("pause", () => {
  3583. this.hideControlsDebounced();
  3584. });
  3585. this.on("prev", () => {
  3586. this.message.info("\u6B63\u5728\u5207\u6362\u4E0A\u4E00\u96C6");
  3587. });
  3588. this.on("next", () => {
  3589. this.message.info("\u6B63\u5728\u5207\u6362\u4E0B\u4E00\u96C6");
  3590. });
  3591. this.on("enterfullscreen", () => {
  3592. this.$videoWrapper.addClass("k-player-fullscreen");
  3593. });
  3594. this.on("exitfullscreen", () => {
  3595. this.$videoWrapper.removeClass("k-player-fullscreen");
  3596. });
  3597. this.on("volumechange", () => {
  3598. this.configSaveToLocal("volume", this.plyr.volume);
  3599. });
  3600. this.on("timeupdate", () => {
  3601. this.setCurrentTimeLogThrottled();
  3602. this.$progress.find(".k-player-progress-current").css("width", (this.currentTime / this.plyr.duration || 0) * 100 + "%");
  3603. this.$progress.find(".k-player-progress-buffer").css("width", this.plyr.buffered * 100 + "%");
  3604. });
  3605. this.on("ended", () => {
  3606. if (this.localConfig.autoNext) {
  3607. this.trigger("next");
  3608. }
  3609. });
  3610. this.on("enterpictureinpicture", () => {
  3611. this.setRandomTsuma();
  3612. this.$pip.fadeIn();
  3613. });
  3614. this.on("leavepictureinpicture", () => {
  3615. this.$pip.fadeOut();
  3616. });
  3617. $(".plyr__controls button,.plyr__controls input").on("mouseleave", (e) => {
  3618. e.target.blur();
  3619. });
  3620. const playerEl = document.querySelector(".plyr");
  3621. playerEl.addEventListener("mousemove", () => {
  3622. playerEl.classList.remove("plyr--hide-cursor");
  3623. this.hideCursorDebounced();
  3624. if (this.plyr.paused) {
  3625. this.hideControlsDebounced();
  3626. }
  3627. });
  3628. const controlsEl = document.querySelector(".plyr__controls");
  3629. controlsEl.addEventListener("mouseenter", () => {
  3630. this.isHoverControls = true;
  3631. });
  3632. controlsEl.addEventListener("mouseleave", () => {
  3633. this.isHoverControls = false;
  3634. });
  3635. this.initInputEvent();
  3636. }
  3637. initInputEvent() {
  3638. let timeId;
  3639. const $dom = $("#k-player-wrapper input[type='range']");
  3640. $dom.trigger("mouseup").off("mousedown").off("mouseup");
  3641. $dom.on("mousedown", function() {
  3642. clearInterval(timeId);
  3643. let i = 0;
  3644. timeId = window.setInterval(() => {
  3645. $(this).removeClass().addClass(`shake-${i++ % 2}`);
  3646. }, 100);
  3647. });
  3648. $dom.on("mouseup", function() {
  3649. clearInterval(timeId);
  3650. $(this).removeClass();
  3651. });
  3652. }
  3653. on(event, callback) {
  3654. if ([
  3655. "prev",
  3656. "next",
  3657. "enterwidescreen",
  3658. "exitwidescreen",
  3659. "skiperror"
  3660. ].includes(event)) {
  3661. if (!this.eventMap[event])
  3662. this.eventMap[event] = [];
  3663. this.eventMap[event].push(callback);
  3664. } else {
  3665. this.plyr.on(event, callback);
  3666. }
  3667. }
  3668. trigger(event, params) {
  3669. const fnList = this.eventMap[event] || [];
  3670. fnList.forEach((fn) => {
  3671. fn(this, params);
  3672. });
  3673. }
  3674. onDrop(callback) {
  3675. this.$video.on("dragover", (e) => {
  3676. e.preventDefault();
  3677. }).on("drop", (_e) => {
  3678. const e = _e.originalEvent;
  3679. callback(e);
  3680. });
  3681. }
  3682. injectSettings() {
  3683. this.$settings = createSettingsHTML();
  3684. this.$settings.find("[name=showPlayLarge]").prop("checked", this.localConfig.showPlayLarge).on("change", (e) => {
  3685. const checked = e.target.checked;
  3686. this.configSaveToLocal("showPlayLarge", checked);
  3687. this.$videoWrapper.find(".plyr__control.plyr__control--overlaid").toggle(checked);
  3688. });
  3689. this.$videoWrapper.find(".plyr__control.plyr__control--overlaid").toggle(this.localConfig.showPlayLarge);
  3690. this.$settings.find("[name=showSearchActions]").prop("checked", this.localConfig.showSearchActions).on("change", (e) => {
  3691. const checked = e.target.checked;
  3692. this.configSaveToLocal("showSearchActions", checked);
  3693. this.$searchActions.toggle(checked);
  3694. });
  3695. this.$settings.find("[name=autoNext]").prop("checked", this.localConfig.autoNext).on("change", (e) => {
  3696. const checked = e.target.checked;
  3697. this.configSaveToLocal("autoNext", checked);
  3698. });
  3699. this.$settings.find("[name=showProgress]").prop("checked", this.localConfig.showProgress).on("change", (e) => {
  3700. const checked = e.target.checked;
  3701. this.configSaveToLocal("showProgress", checked);
  3702. this.$progress.toggle(checked);
  3703. });
  3704. this.$progress.toggle(this.localConfig.showProgress);
  3705. this.$settings.find("[name=autoplay]").prop("checked", this.localConfig.autoplay).on("change", (e) => {
  3706. const checked = e.target.checked;
  3707. this.configSaveToLocal("autoplay", checked);
  3708. this.plyr.autoplay = checked;
  3709. });
  3710. this.$settings.find("[name=continuePlay]").prop("checked", this.localConfig.continuePlay).on("change", (e) => {
  3711. const checked = e.target.checked;
  3712. this.configSaveToLocal("continuePlay", checked);
  3713. });
  3714. this.$settings.insertAfter(".plyr__controls__item.plyr__volume");
  3715. }
  3716. configSaveToLocal(key, value) {
  3717. this.localConfig[key] = value;
  3718. gm.setItem(this.localConfigKey, this.localConfig);
  3719. }
  3720. injectSpeed() {
  3721. this.$speed = createSpeedHTML();
  3722. const speedItems = this.$speed.find(".k-speed-item");
  3723. const localSpeed = this.localConfig.speed;
  3724. speedItems.each((_, el) => {
  3725. const speed = +el.dataset.speed;
  3726. if (speed === localSpeed) {
  3727. el.classList.add("k-menu-active");
  3728. }
  3729. $(el).on("click", () => {
  3730. this.speed = speed;
  3731. });
  3732. });
  3733. this.plyr.speed = localSpeed;
  3734. this.$speed.find("#k-speed-text").text(localSpeed === 1 ? "\u500D\u901F" : localSpeed + "x");
  3735. this.$speed.insertBefore(".plyr__controls__item.plyr__volume");
  3736. }
  3737. injectNext() {
  3738. $($("#plyr__next").html()).insertBefore(".plyr__controls__item.plyr__progress__container").on("click", () => {
  3739. this.trigger("next");
  3740. });
  3741. }
  3742. injectSreen() {
  3743. $($("#plyr__widescreen").html()).insertBefore('[data-plyr="fullscreen"]').on("click", () => {
  3744. this.toggleWidescreen();
  3745. });
  3746. }
  3747. async injectSearchActions() {
  3748. this.$searchActions = createSearchActionsHTML().toggle(
  3749. this.localConfig.showSearchActions
  3750. );
  3751. this.$searchActions.insertBefore(this.$speed);
  3752. const actions = await runtime.getSearchActions();
  3753. if (actions.length === 0)
  3754. return;
  3755. this.$searchActions.find(".k-menu").append(
  3756. actions.map(({ name, search }) => {
  3757. return $(
  3758. `<li class="k-menu-item k-speed-item">${name}</li>`
  3759. ).on("click", search);
  3760. })
  3761. );
  3762. }
  3763. async loadSubtitles(file) {
  3764. const blob = await parseSubtitles(file);
  3765. const nextTrack = this.plyr.currentTrack + 1;
  3766. const track = document.createElement("track");
  3767. track.kind = "subtitles";
  3768. track.src = URL.createObjectURL(blob);
  3769. track.srclang = "zh";
  3770. this.media.append(track);
  3771. await sleep(10);
  3772. this.plyr.currentTrack = nextTrack;
  3773. }
  3774. toggleWidescreen(bool = !this.isWideScreen) {
  3775. if (this.isWideScreen === bool)
  3776. return;
  3777. this.isWideScreen = bool;
  3778. session.setItem(this.statusSessionKey, this.isWideScreen);
  3779. if (this.isWideScreen) {
  3780. this.wideScreenBodyStyles = $("body").css(["overflow"]);
  3781. $("body").css("overflow", "hidden");
  3782. this.$wrapper.addClass("k-player-widescreen");
  3783. $(".plyr__widescreen").addClass("plyr__control--pressed");
  3784. } else {
  3785. $("body").css(this.wideScreenBodyStyles);
  3786. this.$wrapper.removeClass("k-player-widescreen");
  3787. $(".plyr__widescreen").removeClass("plyr__control--pressed");
  3788. }
  3789. this.trigger(this.isWideScreen ? "enterwidescreen" : "exitwidescreen");
  3790. }
  3791. get media() {
  3792. return this.$video[0];
  3793. }
  3794. set src(src) {
  3795. this.isJumped = false;
  3796. if (src.includes(".m3u8")) {
  3797. if (Hls.isSupported()) {
  3798. const hls = new Hls();
  3799. hls.loadSource(src);
  3800. hls.attachMedia(this.media);
  3801. } else if (this.media.canPlayType("application/vnd.apple.mpegurl")) {
  3802. this.$video.attr("src", src);
  3803. } else {
  3804. throw new Error("\u4E0D\u652F\u6301\u64AD\u653E hls \u6587\u4EF6");
  3805. }
  3806. } else {
  3807. this.$video.attr("src", src);
  3808. }
  3809. this.speed = this.localConfig.speed;
  3810. this.plyr.volume = this.localConfig.volume;
  3811. }
  3812. get src() {
  3813. return this.media.currentSrc;
  3814. }
  3815. set currentTime(value) {
  3816. this.plyr.currentTime = value;
  3817. }
  3818. get currentTime() {
  3819. return this.plyr.currentTime;
  3820. }
  3821. get speed() {
  3822. return this.plyr.speed;
  3823. }
  3824. set speed(speed) {
  3825. this.plyr.speed = speed;
  3826. const speedItems = this.$speed.find(".k-speed-item");
  3827. speedItems.each((_, el) => {
  3828. if (speed === +el.dataset.speed) {
  3829. el.classList.add("k-menu-active");
  3830. } else {
  3831. el.classList.remove("k-menu-active");
  3832. }
  3833. });
  3834. this.$speed.find("#k-speed-text").text(speed === 1 ? "\u500D\u901F" : speed + "x");
  3835. this.message.destroy();
  3836. this.message.info(`\u89C6\u9891\u901F\u5EA6\uFF1A${speed}`);
  3837. this.configSaveToLocal("speed", speed);
  3838. }
  3839. showError(text) {
  3840. this.setRandomTsuma();
  3841. this.$error.show().find(".k-player-error-info").text(text);
  3842. }
  3843. hideError() {
  3844. this.$error.hide();
  3845. }
  3846. setRandomTsuma() {
  3847. this.curentTsuma = ++this.curentTsuma % this.tsumaLength;
  3848. this.$wrapper.find(".k-player-tsuma").attr("data-bg-idx", this.curentTsuma);
  3849. }
  3850. eventToParentWindow() {
  3851. const evnetKeys = [
  3852. "prev",
  3853. "next",
  3854. "enterwidescreen",
  3855. "exitwidescreen",
  3856. "skiperror",
  3857. "progress",
  3858. "playing",
  3859. "play",
  3860. "pause",
  3861. "timeupdate",
  3862. "volumechange",
  3863. "seeking",
  3864. "seeked",
  3865. "ratechange",
  3866. "ended",
  3867. "enterfullscreen",
  3868. "exitfullscreen",
  3869. "captionsenabled",
  3870. "captionsdisabled",
  3871. "languagechange",
  3872. "controlshidden",
  3873. "controlsshown",
  3874. "ready",
  3875. "loadstart",
  3876. "loadeddata",
  3877. "loadedmetadata",
  3878. "canplay",
  3879. "canplaythrough",
  3880. "stalled",
  3881. "waiting",
  3882. "emptied",
  3883. "cuechange",
  3884. "error"
  3885. ];
  3886. evnetKeys.forEach((key) => {
  3887. this.on(key, () => {
  3888. const video = this.media;
  3889. const info = {
  3890. width: video.videoWidth,
  3891. height: video.videoHeight,
  3892. currentTime: video.currentTime,
  3893. src: video.src,
  3894. duration: video.duration
  3895. };
  3896. window.parent.postMessage({ key, video: info }, "*");
  3897. });
  3898. });
  3899. }
  3900. };
  3901. let KPlayer = _KPlayer;
  3902. KPlayer.plguinList = [];
  3903.  
  3904. function request(opts) {
  3905. let { url, method, params } = opts;
  3906. if (params) {
  3907. let u = new URL(url);
  3908. Object.keys(params).forEach((key) => {
  3909. const value = params[key];
  3910. if (value !== void 0 && value !== null) {
  3911. u.searchParams.set(key, params[key]);
  3912. }
  3913. });
  3914. url = u.toString();
  3915. }
  3916. return new Promise((resolve, reject) => {
  3917. console.log("[agefans-enhance]", url);
  3918. GM_xmlhttpRequest({
  3919. url,
  3920. method: method || "GET",
  3921. responseType: "json",
  3922. headers: opts.headers,
  3923. onload: (res) => {
  3924. console.log("[agefans-enhance]", res, res.response);
  3925. resolve(res.response);
  3926. },
  3927. onerror: reject
  3928. });
  3929. });
  3930. }
  3931.  
  3932. function createStorage(storageKey) {
  3933. function storage(key, value) {
  3934. const store = local.getItem(storageKey, {});
  3935. if (value) {
  3936. store[key] = value;
  3937. local.setItem(storageKey, store);
  3938. } else {
  3939. return store[key];
  3940. }
  3941. }
  3942. return storage;
  3943. }
  3944. const storageAnimeName = createStorage(
  3945. "k-player-danmaku-anime-name-v3"
  3946. );
  3947. const storageEpisodeName = createStorage(
  3948. "k-player-danmaku-episode-name-v3"
  3949. );
  3950. function convert32ToHex(color) {
  3951. return "#" + parseInt(color).toString(16);
  3952. }
  3953. function parseUid(uid) {
  3954. let source = "\u5F39\u5F39play", id = uid;
  3955. const matcher = uid.match(/^\[(.*?)\](.*)/);
  3956. if (matcher) {
  3957. source = matcher[1];
  3958. id = matcher[2];
  3959. }
  3960. return { source, id };
  3961. }
  3962. function rangePercent(min, input, max) {
  3963. input = Math.min(max, Math.max(min, input));
  3964. return (input - min) / (max - min) * 100;
  3965. }
  3966. function addRangeListener(opts) {
  3967. const { $dom, name, onInput, player, onChange } = opts;
  3968. const $valueDom = $(
  3969. '<div style="width:45px;flex-shrink:0;text-align:right;white-space:nowrap;"></div>'
  3970. );
  3971. $valueDom.insertAfter($dom);
  3972. const min = parseFloat($dom.attr("min"));
  3973. const max = parseFloat($dom.attr("max"));
  3974. const setStyle = () => {
  3975. const value = parseFloat($dom.val());
  3976. player.configSaveToLocal(name, value);
  3977. onInput == null ? void 0 : onInput(value);
  3978. $valueDom.text((value * 100).toFixed(0) + "%");
  3979. $dom.css("--value", rangePercent(min, value, max) + "%");
  3980. };
  3981. $dom.val(player.localConfig[name]);
  3982. $dom.on("input", setStyle);
  3983. $dom.on("change", () => {
  3984. onChange == null ? void 0 : onChange(parseFloat($dom.val()));
  3985. });
  3986. setStyle();
  3987. }
  3988. function getCheckboxGroupValue($dom) {
  3989. const ret = [];
  3990. $dom.each((_, el) => {
  3991. if (el.checked)
  3992. ret.push(el.value);
  3993. });
  3994. return ret;
  3995. }
  3996. function setCheckboxGroupValue($dom, value) {
  3997. $dom.each((_, el) => {
  3998. if (value.includes(el.value)) {
  3999. el.checked = true;
  4000. }
  4001. });
  4002. }
  4003. function lockWrap(fn) {
  4004. let lock = false;
  4005. return async (...args) => {
  4006. if (lock)
  4007. return;
  4008. try {
  4009. lock = true;
  4010. await fn(...args);
  4011. } finally {
  4012. lock = false;
  4013. }
  4014. };
  4015. }
  4016.  
  4017. const KEY = "eyJYLUFwcElkIjoiaHZmNnB6dnhjbSIsIlgtQXBwU2VjcmV0IjoiSVpoY1VJYWtveEZhSzl4QkJESjlCczFPVTJzNGtLNXQifQ==";
  4018. const headers = JSON.parse(atob(KEY));
  4019. async function getComments(episodeId) {
  4020. const res = await request({
  4021. url: `https://api.dandanplay.net/api/v2/comment/${episodeId}?withRelated=true&chConvert=1`,
  4022. headers
  4023. });
  4024. return res.comments.map((o) => {
  4025. const [time, type, color, uid] = o.p.split(",");
  4026. const user = parseUid(uid);
  4027. return {
  4028. mode: { 1: "rtl", 4: "bottom", 5: "top" }[type] || "rtl",
  4029. text: o.m,
  4030. time: parseFloat(time),
  4031. style: { color: convert32ToHex(color) },
  4032. user
  4033. };
  4034. }).sort((a, b) => a.time - b.time);
  4035. }
  4036. async function queryAnimes(anime) {
  4037. const res = await request({
  4038. url: "https://api.dandanplay.net/api/v2/search/anime",
  4039. params: { keyword: anime },
  4040. headers
  4041. });
  4042. if (!res.success)
  4043. throw new Error(res.errorMessage);
  4044. return res.animes.map((o) => ({
  4045. id: o.bangumiId,
  4046. name: o.animeTitle
  4047. }));
  4048. }
  4049. const queryEpisodes = memoize(async function(animeId) {
  4050. const res = await request({
  4051. url: `https://api.dandanplay.net/api/v2/bangumi/${animeId}`,
  4052. headers
  4053. });
  4054. if (!res.success) {
  4055. setTimeout(() => {
  4056. var _a, _b;
  4057. return (_b = (_a = queryEpisodes.cache).clear) == null ? void 0 : _b.call(_a);
  4058. }, 100);
  4059. throw new Error(res.errorMessage);
  4060. }
  4061. return res.bangumi.episodes.map((o) => ({
  4062. id: o.episodeId,
  4063. name: o.episodeTitle
  4064. }));
  4065. });
  4066.  
  4067. function createDanmakuList(player, getComments, refreshDanmaku) {
  4068. const $open = $("#k-player-danmaku-search-form .open-danmaku-list");
  4069. $open.on("click", () => {
  4070. const comments = getComments();
  4071. if (!comments)
  4072. return;
  4073. const $root = $(`
  4074. <div class="k-player-danmaku-list-wrapper">
  4075. <div class="k-player-danmaku-list-source-filter">
  4076. <div>\u6765\u6E90\uFF1A</div>
  4077. <div class="k-player-danmaku-list-source"></div>
  4078. </div>
  4079. <div class="k-player-danmaku-list-table-wrapper">
  4080. <div class="k-player-danmaku-list-table-content">
  4081. <table class="k-table k-player-danmaku-list-table">
  4082. <thead>
  4083. <tr>
  4084. <th>\u65F6\u95F4</th>
  4085. <th>\u5185\u5BB9</th>
  4086. <th>\u6765\u6E90</th>
  4087. </tr>
  4088. </thead>
  4089. <tbody>
  4090. </tbody>
  4091. </table>
  4092. </div>
  4093. </div>
  4094.  
  4095. </div>
  4096. `);
  4097. let i = 0;
  4098. let end = 100;
  4099. const render = () => {
  4100. if (i >= comments.length) {
  4101. $content.height("");
  4102. return;
  4103. }
  4104. $root.find("tbody").append(
  4105. comments.slice(i, end).map(
  4106. (cmt) => `
  4107. <tr data-source="${cmt.user.source}">
  4108. <td>${parseTime(cmt.time)}</td>
  4109. <td>${cmt.text}</td>
  4110. <td>${cmt.user.source}</td>
  4111. </tr>`
  4112. ).join("")
  4113. );
  4114. i = end;
  4115. };
  4116. render();
  4117. modal({
  4118. title: "\u5F39\u5E55\u5217\u8868",
  4119. content: $root,
  4120. className: "k-player-danmaku-list",
  4121. afterClose: () => {
  4122. refreshDanmaku();
  4123. }
  4124. });
  4125. const $source = $root.find(".k-player-danmaku-list-source");
  4126. const sourceCountMap = comments.reduce(
  4127. (map, cmt) => {
  4128. var _a;
  4129. const source = cmt.user.source;
  4130. (_a = map[source]) != null ? _a : map[source] = 0;
  4131. map[source]++;
  4132. return map;
  4133. },
  4134. {}
  4135. );
  4136. Object.entries(sourceCountMap).forEach(([source, count]) => {
  4137. const isDisabled = player.localConfig.danmakuSourceDisabledList.includes(source);
  4138. const percent = (count / comments.length * 100).toFixed(2);
  4139. $(`<label class="k-player-danmaku-list-source-item k-capsule">
  4140. <input hidden type="checkbox" value="${source}"/>
  4141. <div title="${source}\u6709${count}\u6761\u5F39\u5E55">${source}(${percent}%)</div>
  4142. </label>`).appendTo($source).find("input").prop("checked", !isDisabled).on("change", (e) => {
  4143. let next = [...player.localConfig.danmakuSourceDisabledList];
  4144. if (e.currentTarget.checked) {
  4145. next = next.filter((src) => src !== source);
  4146. } else {
  4147. next.push(source);
  4148. }
  4149. player.configSaveToLocal("danmakuSourceDisabledList", next);
  4150. });
  4151. });
  4152. const $wrapper = $root.find(".k-player-danmaku-list-table-wrapper");
  4153. const $content = $root.find(".k-player-danmaku-list-table-content");
  4154. const $table = $root.find(".k-player-danmaku-list-table");
  4155. const itemHeight = $root.find("thead tr").height();
  4156. $content.height(itemHeight * (comments.length + 1));
  4157. $wrapper.on("scroll", (e) => {
  4158. const dom = e.currentTarget;
  4159. const height = dom.scrollTop + dom.clientHeight + 1e3;
  4160. if ($table.height() < height) {
  4161. end = Math.ceil(height / itemHeight);
  4162. render();
  4163. }
  4164. });
  4165. });
  4166. }
  4167.  
  4168. function parseToJSON(raw) {
  4169. return new Promise((resolve, reject) => {
  4170. const blob = new Blob([raw], { type: "application/json" });
  4171. const url = URL.createObjectURL(blob);
  4172. fetch(url).then((r) => r.json()).then(resolve).catch(reject).finally(() => {
  4173. URL.revokeObjectURL(url);
  4174. });
  4175. });
  4176. }
  4177.  
  4178. function createFilter(player, refreshDanmaku) {
  4179. const $filter = $("#k-player-danmaku-filter-form");
  4180. const $importLabel = $("#k-player-danmaku-filter-import");
  4181. $importLabel.on("click", () => {
  4182. modal({
  4183. title: "\u5BFC\u5165B\u7AD9\u5C4F\u853D\u8BBE\u5B9A",
  4184. content: `
  4185. <p>1. \u968F\u4FBF\u70B9\u5F00\u4E00\u4E2A\u89C6\u9891\uFF0C\u53F3\u4FA7\u5F39\u5E55\u5217\u8868\u6253\u5F00\u5C4F\u853D\u8BBE\u5B9A\uFF0C\u5BF9\u5C4F\u853D\u5217\u8868\u53F3\u952E\uFF0C\u5BFC\u51FAxml\u6216json\u6587\u4EF6\u3002</p>
  4186. <p>2. \u70B9\u51FB\u4E0B\u9762\u3010\u5F00\u59CB\u5BFC\u5165\u3011\u6309\u94AE\uFF0C\u9009\u62E9\u521A\u4E0B\u8F7D\u7684xml\u6216json\u6587\u4EF6</p>
  4187. `,
  4188. okText: "\u5F00\u59CB\u5BFC\u5165",
  4189. onOk: importBiliSettings
  4190. });
  4191. });
  4192. function importBiliSettings() {
  4193. var _a;
  4194. const $import = $(
  4195. '<input type="file" style="display:none" accept=".xml,.json"/>'
  4196. );
  4197. $import.on("change", (e) => {
  4198. var _a2;
  4199. const file = (_a2 = e.target.files) == null ? void 0 : _a2[0];
  4200. $import.remove();
  4201. if (!file)
  4202. return;
  4203. const fd = new FileReader();
  4204. fd.onload = () => {
  4205. const result = fd.result;
  4206. if (typeof result === "string") {
  4207. if (file.name.endsWith(".xml"))
  4208. importBiliXML(result);
  4209. if (file.name.endsWith(".json"))
  4210. importBiliJSON(result);
  4211. }
  4212. };
  4213. fd.readAsText(file);
  4214. });
  4215. $import.appendTo("body");
  4216. (_a = $import.get(0)) == null ? void 0 : _a.click();
  4217. }
  4218. function importBiliXML(xml) {
  4219. const $xml = $(xml);
  4220. const $activeItems = $xml.find('item[enabled="true"]');
  4221. let rules = $activeItems.map((_, el) => el.textContent).get().filter((t) => /^(t|r)=/.test(t)).map((t) => t.replace(/^(t|r)=/, ""));
  4222. mergeRules(rules);
  4223. }
  4224. async function importBiliJSON(jsonStr) {
  4225. try {
  4226. let json = await parseToJSON(jsonStr);
  4227. let rules = json.filter((o) => o.opened && o.type !== 2).map((o) => o.type === 1 ? `/${o.filter}/` : o.filter);
  4228. mergeRules(rules);
  4229. } catch (error) {
  4230. player.message.info("\u5BFC\u5165\u5931\u8D25\uFF0CJSON \u683C\u5F0F\u6709\u8BEF", 3e3);
  4231. }
  4232. }
  4233. function mergeRules(rules) {
  4234. const mergedRules = /* @__PURE__ */ new Set([...player.localConfig.danmakuFilter, ...rules]);
  4235. player.message.info(
  4236. `\u5BFC\u5165 ${mergedRules.size - player.localConfig.danmakuFilter.length} \u6761\u89C4\u5219`
  4237. );
  4238. player.configSaveToLocal("danmakuFilter", [...mergedRules]);
  4239. refreshDanmaku();
  4240. refreshFilterDom();
  4241. }
  4242. const $input = $filter.find('[name="filter-input"]');
  4243. $input.on("keypress", (e) => {
  4244. if (e.key === "Enter")
  4245. addFilter($input.val());
  4246. });
  4247. function refreshFilterDom() {
  4248. const filters = player.localConfig.danmakuFilter;
  4249. let html = "";
  4250. filters.forEach((filter, idx) => {
  4251. html += `<div class="ft-row">
  4252. <div class="ft-content">${filter}</div>
  4253. <div class="ft-op"><a key="delete" data-idx="${idx}">\u5220\u9664</a></div>
  4254. </div>`;
  4255. });
  4256. $filter.find(".ft-body").empty().append(html);
  4257. $filter.find("[key=delete]").on("click", (e) => {
  4258. const idx = parseInt($(e.target).attr("data-idx"));
  4259. deleteFilter(idx);
  4260. });
  4261. $filter.find("#filter-count").text(filters.length);
  4262. }
  4263. function deleteFilter(idx) {
  4264. player.localConfig.danmakuFilter.splice(idx, 1);
  4265. player.configSaveToLocal("danmakuFilter", player.localConfig.danmakuFilter);
  4266. refreshDanmaku();
  4267. refreshFilterDom();
  4268. }
  4269. function addFilter(filter) {
  4270. const filters = player.localConfig.danmakuFilter;
  4271. $input.val("");
  4272. if (!filter || filters.includes(filter))
  4273. return;
  4274. if (/^\/.*\/$/.test(filter)) {
  4275. try {
  4276. new RegExp(filter.slice(1, -1));
  4277. } catch (error) {
  4278. return;
  4279. }
  4280. }
  4281. filters.push(filter);
  4282. player.configSaveToLocal("danmakuFilter", filters);
  4283. refreshFilterDom();
  4284. refreshDanmaku();
  4285. }
  4286. refreshFilterDom();
  4287. }
  4288.  
  4289. var Commands = /* @__PURE__ */ ((Commands2) => {
  4290. Commands2["danmakuSwitch"] = "switchDanmaku";
  4291. Commands2["danmakuSyncBack"] = "danmakuSyncBack";
  4292. Commands2["danmakuSyncForward"] = "danmakuSyncForward";
  4293. Commands2["danmakuSyncRestore"] = "danmakuSyncRestore";
  4294. return Commands2;
  4295. })(Commands || {});
  4296.  
  4297. class DanmakuElements {
  4298. constructor(player) {
  4299. this.player = player;
  4300. this.$danmakuOverlay = tabs([
  4301. {
  4302. name: "\u641C\u7D22",
  4303. content: `<div id="k-player-danmaku-search-form">
  4304. <label>
  4305. <span>\u641C\u7D22\u756A\u5267\u540D\u79F0</span>
  4306. <input type="text" id="animeName" class="k-input" />
  4307. </label>
  4308. <div style="min-height:24px; padding-top:4px">
  4309. <span id="tips"></span>
  4310. </div>
  4311. <label>
  4312. <span>\u756A\u5267\u540D\u79F0</span>
  4313. <select id="animes" class="k-select"></select>
  4314. </label>
  4315. <label>
  4316. <span>\u7AE0\u8282</span>
  4317. <select id="episodes" class="k-select"></select>
  4318. </label>
  4319. <label>
  4320. <span class="open-danmaku-list">
  4321. <span>\u5F39\u5E55\u5217\u8868</span><small data-id="count"></small>
  4322. </span>
  4323. </label>
  4324. <span class="specific-thanks">\u5F39\u5E55\u670D\u52A1\u7531 \u5F39\u5F39play \u63D0\u4F9B</span>
  4325. </div>`
  4326. },
  4327. {
  4328. name: "\u8BBE\u7F6E",
  4329. content: `
  4330. <div id="k-player-danmaku-setting-form" class="k-settings-list">
  4331. <label class="k-settings-item">
  4332. <input type="checkbox" name="showDanmaku" />
  4333. <span>\u663E\u793A\u5F39\u5E55(<k-shortcuts-tip command="${Commands.danmakuSwitch}"></k-shortcuts-tip>)</span>
  4334. </label>
  4335. <label class="k-settings-item">
  4336. <input type="checkbox" name="showPbp" />
  4337. <span>\u663E\u793A\u9AD8\u80FD\u8FDB\u5EA6\u6761</span>
  4338. </label>
  4339. <div class="k-settings-item">
  4340. <label class="k-settings-item" title="\u542F\u7528\u540E\u5408\u5E76\u663E\u793A\u91CD\u590D\u7684\u5F39\u5E55">
  4341. <input type="checkbox" name="danmakuMerge" />
  4342. <span>\u5408\u5E76\u5F39\u5E55</span>
  4343. </label>
  4344. <label class="k-settings-item" title="\u542F\u7528\u540E\u5F53\u5F39\u5E55\u8FC7\u591A\u7684\u65F6\u5019\u53EF\u4EE5\u91CD\u53E0\u663E\u793A">
  4345. <input type="checkbox" name="danmakuOverlap" />
  4346. <span>\u91CD\u53E0\u5F39\u5E55</span>
  4347. </label>
  4348. </div>
  4349. <label class="k-settings-item">
  4350. <span>\u900F\u660E\u5EA6&#12288;</span>
  4351. <input type="range" name="opacity" step="0.01" min="0" max="1" />
  4352. </label>
  4353. <label class="k-settings-item">
  4354. <span>\u5F39\u5E55\u5927\u5C0F</span>
  4355. <input type="range" name="danmakuFontSize" step="0.01" min="0.5" max="2" />
  4356. </label>
  4357. <label class="k-settings-item">
  4358. <span>\u5F39\u5E55\u901F\u5EA6</span>
  4359. <input type="range" name="danmakuSpeed" step="0.01" min="0.5" max="1.5" />
  4360. </label>
  4361. <label class="k-settings-item" title="\u57FA\u51C6\u4E3A 24 \u5206\u949F 3000 \u6761\u5F39\u5E55">
  4362. <span>\u5F39\u5E55\u5BC6\u5EA6</span>
  4363. <input type="range" name="danmakuDensity" step="0.01" min="0.5" max="2" />
  4364. </label>
  4365. <label class="k-settings-item">
  4366. <span>\u5F39\u5E55\u533A\u57DF</span>
  4367. <input type="range" name="danmakuScrollAreaPercent" step="0.01" min="0.25" max="1" />
  4368. </label>
  4369. <div class="k-settings-item" style="height:24px">
  4370. <div>\u5F39\u5E55\u7C7B\u578B</div>
  4371. <label class="k-settings-item" title="\u9876\u90E8\u5F39\u5E55">
  4372. <input type="checkbox" name="danmakuMode" value="top"/>
  4373. <span>\u9876</span>
  4374. </label>
  4375. <label class="k-settings-item" title="\u5E95\u90E8\u5F39\u5E55">
  4376. <input type="checkbox" name="danmakuMode" value="bottom"/>
  4377. <span>\u5E95</span>
  4378. </label>
  4379. <label class="k-settings-item" title="\u5F69\u8272\u5F39\u5E55">
  4380. <input type="checkbox" name="danmakuMode" value="color" />
  4381. <span>\u5F69</span>
  4382. </label>
  4383. </div>
  4384. </div>
  4385. `
  4386. },
  4387. {
  4388. name: "\u8FC7\u6EE4",
  4389. content: `
  4390. <div id="k-player-danmaku-filter-form">
  4391. <div class="ft-input-wrapper">
  4392. <div>
  4393. <input type="text" name="filter-input" placeholder="\u53EF\u6B63\u5219\u201C/\u201D\u5F00\u5934\u201C/\u201D\u7ED3\u5C3E" class="k-input"/>
  4394. </div>
  4395. <label id="k-player-danmaku-filter-import" title="\u5BFC\u5165B\u7AD9\u5F39\u5E55\u8FC7\u6EE4\u8BBE\u7F6E">
  4396. \u5BFC\u5165
  4397. </label>
  4398. </div>
  4399.  
  4400. <div id="k-player-danmaku-filter-table">
  4401. <div class="ft-row" style="pointer-events:none;">
  4402. <div class="ft-content">\u5185\u5BB9(<span id="filter-count"></span>)</div>
  4403. <div class="ft-op">\u64CD\u4F5C</div>
  4404. </div>
  4405. <div class="ft-body"></div>
  4406. </div>
  4407. </div>
  4408. `
  4409. },
  4410. {
  4411. name: "\u65E5\u5FD7",
  4412. content: `
  4413. <div id="k-player-danmaku-log"></div>
  4414. `
  4415. }
  4416. ]);
  4417. this.$danmakuSwitch = $(`
  4418. <button
  4419. class="plyr__controls__item plyr__control plyr__switch-danmaku plyr__custom"
  4420. type="button"
  4421. data-plyr="switch-danmaku"
  4422. aria-label="switch-danmaku"
  4423. >
  4424. <svg class="icon--not-pressed" focusable="false" width="1em" height="1em" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="bpx-svg-sprite-danmu-off"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.085 4.891l-.999-1.499a1.008 1.008 0 011.679-1.118l1.709 2.566c.54-.008 1.045-.012 1.515-.012h.13c.345 0 .707.003 1.088.007l1.862-2.59a1.008 1.008 0 011.637 1.177l-1.049 1.46c.788.02 1.631.046 2.53.078 1.958.069 3.468 1.6 3.74 3.507.088.613.13 2.158.16 3.276l.001.027c.01.333.017.63.025.856a.987.987 0 01-1.974.069c-.008-.23-.016-.539-.025-.881v-.002c-.028-1.103-.066-2.541-.142-3.065-.143-1.004-.895-1.78-1.854-1.813-2.444-.087-4.466-.13-6.064-.131-1.598 0-3.619.044-6.063.13a2.037 2.037 0 00-1.945 1.748c-.15 1.04-.225 2.341-.225 3.904 0 1.874.11 3.474.325 4.798.154.949.95 1.66 1.91 1.708a97.58 97.58 0 005.416.139.988.988 0 010 1.975c-2.196 0-3.61-.047-5.513-.141A4.012 4.012 0 012.197 17.7c-.236-1.446-.351-3.151-.351-5.116 0-1.64.08-3.035.245-4.184A4.013 4.013 0 015.92 4.96c.761-.027 1.483-.05 2.164-.069zm4.436 4.707h-1.32v4.63h2.222v.848h-2.618v1.078h2.431a5.01 5.01 0 013.575-3.115V9.598h-1.276a8.59 8.59 0 00.748-1.42l-1.089-.384a14.232 14.232 0 01-.814 1.804h-1.518l.693-.308a8.862 8.862 0 00-.814-1.408l-1.045.352c.297.396.572.847.825 1.364zm-4.18 3.564l.154-1.485h1.98V8.289h-3.2v.979h2.067v1.43H7.483l-.308 3.454h2.277c0 1.166-.044 1.925-.12 2.277-.078.352-.386.528-.936.528-.308 0-.616-.022-.902-.055l.297 1.067.062.004c.285.02.551.04.818.04 1.001-.066 1.562-.418 1.694-1.056.11-.638.176-1.903.176-3.795h-2.2zm7.458.11v-.858h-1.254v.858H15.8zm-2.376-.858v.858h-1.199v-.858h1.2zm-1.199-.946h1.2v-.902h-1.2v.902zm2.321 0v-.902H15.8v.902h-1.254zm3.517 10.594a4 4 0 100-8 4 4 0 000 8zm-.002-1.502a2.5 2.5 0 01-2.217-3.657l3.326 3.398a2.49 2.49 0 01-1.109.259zm2.5-2.5c0 .42-.103.815-.286 1.162l-3.328-3.401a2.5 2.5 0 013.614 2.239z"></path></svg>
  4425. <svg class="icon--pressed" focusable="false" width="1em" height="1em" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="bpx-svg-sprite-danmu-on"><path fill-rule="evenodd" clip-rule="evenodd" d="M11.989 4.828c-.47 0-.975.004-1.515.012l-1.71-2.566a1.008 1.008 0 00-1.678 1.118l.999 1.5c-.681.018-1.403.04-2.164.068a4.013 4.013 0 00-3.83 3.44c-.165 1.15-.245 2.545-.245 4.185 0 1.965.115 3.67.35 5.116a4.012 4.012 0 003.763 3.363l.906.046c1.205.063 1.808.095 3.607.095a.988.988 0 000-1.975c-1.758 0-2.339-.03-3.501-.092l-.915-.047a2.037 2.037 0 01-1.91-1.708c-.216-1.324-.325-2.924-.325-4.798 0-1.563.076-2.864.225-3.904.14-.977.96-1.713 1.945-1.747 2.444-.087 4.465-.13 6.063-.131 1.598 0 3.62.044 6.064.13.96.034 1.71.81 1.855 1.814.075.524.113 1.962.141 3.065v.002c.01.342.017.65.025.88a.987.987 0 101.974-.068c-.008-.226-.016-.523-.025-.856v-.027c-.03-1.118-.073-2.663-.16-3.276-.273-1.906-1.783-3.438-3.74-3.507-.9-.032-1.743-.058-2.531-.078l1.05-1.46a1.008 1.008 0 00-1.638-1.177l-1.862 2.59c-.38-.004-.744-.007-1.088-.007h-.13zm.521 4.775h-1.32v4.631h2.222v.847h-2.618v1.078h2.618l.003.678c.36.026.714.163 1.01.407h.11v-1.085h2.694v-1.078h-2.695v-.847H16.8v-4.63h-1.276a8.59 8.59 0 00.748-1.42L15.183 7.8a14.232 14.232 0 01-.814 1.804h-1.518l.693-.308a8.862 8.862 0 00-.814-1.408l-1.045.352c.297.396.572.847.825 1.364zm-4.18 3.564l.154-1.485h1.98V8.294h-3.2v.98H9.33v1.43H7.472l-.308 3.453h2.277c0 1.166-.044 1.925-.12 2.277-.078.352-.386.528-.936.528-.308 0-.616-.022-.902-.055l.297 1.067.062.005c.285.02.551.04.818.04 1.001-.067 1.562-.419 1.694-1.057.11-.638.176-1.903.176-3.795h-2.2zm7.458.11v-.858h-1.254v.858h1.254zm-2.376-.858v.858h-1.199v-.858h1.2zm-1.199-.946h1.2v-.902h-1.2v.902zm2.321 0v-.902h1.254v.902h-1.254z"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M22.846 14.627a1 1 0 00-1.412.075l-5.091 5.703-2.216-2.275-.097-.086-.008-.005a1 1 0 00-1.322 1.493l2.963 3.041.093.083.007.005c.407.315 1 .27 1.354-.124l5.81-6.505.08-.102.005-.008a1 1 0 00-.166-1.295z" fill="var(--color)"></path></svg>
  4426. <span class="label--not-pressed plyr__tooltip">\u5F00\u542F\u5F39\u5E55(<k-shortcuts-tip command="${Commands.danmakuSwitch}"></k-shortcuts-tip>)</span>
  4427. <span class="label--pressed plyr__tooltip">\u5173\u95ED\u5F39\u5E55(<k-shortcuts-tip command="${Commands.danmakuSwitch}"></k-shortcuts-tip>)</span>
  4428. </button>`);
  4429. this.$danmakuSettingButton = $(`<button class="plyr__controls__item plyr__control" type="button" data-plyr="danmaku-setting">
  4430. <svg class="icon--not-pressed" focusable="false" xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24" id="bpx-svg-sprite-new-danmu-setting"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.645 4.881l1.06-1.473a.998.998 0 10-1.622-1.166L13.22 4.835a110.67 110.67 0 00-1.1-.007h-.131c-.47 0-.975.004-1.515.012L8.783 2.3A.998.998 0 007.12 3.408l.988 1.484c-.688.019-1.418.042-2.188.069a4.013 4.013 0 00-3.83 3.44c-.165 1.15-.245 2.545-.245 4.185 0 1.965.115 3.67.35 5.116a4.012 4.012 0 003.763 3.363c1.903.094 3.317.141 5.513.141a.988.988 0 000-1.975 97.58 97.58 0 01-5.416-.139 2.037 2.037 0 01-1.91-1.708c-.216-1.324-.325-2.924-.325-4.798 0-1.563.076-2.864.225-3.904.14-.977.96-1.713 1.945-1.747 2.444-.087 4.465-.13 6.063-.131 1.598 0 3.62.044 6.064.13.96.034 1.71.81 1.855 1.814.075.524.113 1.962.141 3.065v.002c.005.183.01.07.014-.038.004-.096.008-.189.011-.081a.987.987 0 101.974-.069c-.004-.105-.007-.009-.011.09-.002.056-.004.112-.007.135l-.002.01a.574.574 0 01-.005-.091v-.027c-.03-1.118-.073-2.663-.16-3.276-.273-1.906-1.783-3.438-3.74-3.507-.905-.032-1.752-.058-2.543-.079zm-3.113 4.703h-1.307v4.643h2.2v.04l.651-1.234c.113-.215.281-.389.482-.509v-.11h.235c.137-.049.283-.074.433-.074h1.553V9.584h-1.264a8.5 8.5 0 00.741-1.405l-1.078-.381c-.24.631-.501 1.23-.806 1.786h-1.503l.686-.305c-.228-.501-.5-.959-.806-1.394l-1.034.348c.294.392.566.839.817 1.35zm-1.7 5.502h2.16l-.564 1.068h-1.595v-1.068zm-2.498-1.863l.152-1.561h1.96V8.289H7.277v.969h2.048v1.435h-1.84l-.306 3.51h2.254c0 1.155-.043 1.906-.12 2.255-.076.348-.38.523-.925.523-.305 0-.61-.022-.893-.055l.294 1.056.061.005c.282.02.546.039.81.039.991-.065 1.547-.414 1.677-1.046.11-.631.175-1.883.175-3.757H8.334zm5.09-.8v.85h-1.188v-.85h1.187zm-1.188-.955h1.187v-.893h-1.187v.893zm2.322.007v-.893h1.241v.893h-1.241zm.528 2.757a1.26 1.26 0 011.087-.627l4.003-.009a1.26 1.26 0 011.094.63l1.721 2.982c.226.39.225.872-.001 1.263l-1.743 3a1.26 1.26 0 01-1.086.628l-4.003.009a1.26 1.26 0 01-1.094-.63l-1.722-2.982a1.26 1.26 0 01.002-1.263l1.742-3zm1.967.858a1.26 1.26 0 00-1.08.614l-.903 1.513a1.26 1.26 0 00-.002 1.289l.885 1.492c.227.384.64.62 1.086.618l2.192-.005a1.26 1.26 0 001.08-.615l.904-1.518a1.26 1.26 0 00.001-1.288l-.884-1.489a1.26 1.26 0 00-1.086-.616l-2.193.005zm2.517 2.76a1.4 1.4 0 11-2.8 0 1.4 1.4 0 012.8 0z"></path></svg>
  4431. <span class="label--not-pressed plyr__tooltip">\u5F39\u5E55\u8BBE\u7F6E</span>
  4432. </button>`);
  4433. this.$danmaku = popover({
  4434. target: this.$danmakuSettingButton,
  4435. overlay: this.$danmakuOverlay,
  4436. trigger: "click",
  4437. onVisibleChange: (visible) => {
  4438. var _a, _b, _c, _d;
  4439. (_a = this.player.plyr.elements.container) == null ? void 0 : _a.classList.toggle(
  4440. "k-player-controls-force-show",
  4441. visible
  4442. );
  4443. if (visible) {
  4444. const dom = document.createElement("div");
  4445. dom.style.cssText = "position: absolute; inset: 0; z-index: 10;";
  4446. dom.className = "k-player-danmaku-overlay-video-prevent-click";
  4447. dom.addEventListener("click", (e) => {
  4448. e.stopPropagation();
  4449. });
  4450. (_b = this.player.plyr.elements.container) == null ? void 0 : _b.prepend(dom);
  4451. } else {
  4452. (_d = (_c = this.player.plyr.elements.container) == null ? void 0 : _c.querySelector(".k-player-danmaku-overlay-video-prevent-click")) == null ? void 0 : _d.remove();
  4453. }
  4454. }
  4455. });
  4456. this.$danmakuContainer = $('<div id="k-player-danmaku"></div>');
  4457. this.$pbp = $(`
  4458. <svg
  4459. viewBox="0 0 1000 100"
  4460. preserveAspectRatio="none"
  4461. id="k-player-pbp"
  4462. >
  4463. <defs>
  4464. <clipPath id="k-player-pbp-curve-path" clipPathUnits="userSpaceOnUse">
  4465. <path d=""></path>
  4466. </clipPath>
  4467. </defs>
  4468.  
  4469. <g
  4470. fill-opacity="0.2"
  4471. clip-path="url(#k-player-pbp-curve-path)"
  4472. >
  4473. <rect x="0" y="0" width="100%" height="100%" fill="rgb(255,255,255)"></rect>
  4474. <rect id="k-player-pbp-played-path" x="0" y="0" width="0" height="100%" fill="currentColor"></rect>
  4475. </g>
  4476. </svg>
  4477. `);
  4478. this.$animeName = this.$danmaku.find("#animeName");
  4479. this.$animes = this.$danmaku.find("#animes");
  4480. this.$episodes = this.$danmaku.find("#episodes");
  4481. this.$openDanmakuList = this.$danmaku.find(".open-danmaku-list");
  4482. this.$tips = this.$danmaku.find("#tips");
  4483. this.$showDanmaku = this.$danmaku.find("[name='showDanmaku']");
  4484. this.$showPbp = this.$danmaku.find("[name='showPbp']");
  4485. this.$danmakuMerge = this.$danmaku.find("[name='danmakuMerge']");
  4486. this.$danmakuOverlap = this.$danmaku.find(
  4487. "[name='danmakuOverlap']"
  4488. );
  4489. this.$opacity = this.$danmaku.find("[name='opacity']");
  4490. this.$danmakuSpeed = this.$danmaku.find("[name='danmakuSpeed']");
  4491. this.$danmakuFontSize = this.$danmaku.find(
  4492. "[name='danmakuFontSize']"
  4493. );
  4494. this.$danmakuDensity = this.$danmaku.find(
  4495. "[name='danmakuDensity']"
  4496. );
  4497. this.$danmakuScrollAreaPercent = this.$danmaku.find(
  4498. "[name='danmakuScrollAreaPercent']"
  4499. );
  4500. this.$danmakuMode = this.$danmaku.find("[name='danmakuMode']");
  4501. this.$log = this.$danmakuOverlay.find("#k-player-danmaku-log");
  4502. this.$danmakuOverlay.attr("id", "k-player-danmaku-overlay");
  4503. }
  4504. }
  4505.  
  4506. var css$9 = "#k-player-danmaku {\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n z-index: 10;\n pointer-events: none;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\", sans-serif;\n}\n#k-player-danmaku-notification {\n line-height: 1.6;\n}\n#k-player-danmaku-notification .title {\n text-align: center;\n font-weight: 500;\n font-size: 16px;\n}\n#k-player-danmaku-notification img {\n width: 40%;\n display: block;\n margin: 0 auto 8px;\n}\n#k-player-danmaku-notification a {\n color: var(--k-player-primary-color);\n}\n#k-player-danmaku-notification p {\n margin: 0;\n}\n#k-player-danmaku-notification p:not(:last-child) {\n margin-bottom: 8px;\n}\n#k-player-danmaku .danmaku {\n font-size: calc(var(--danmaku-font-size, 24px) * var(--danmaku-font-size-scale, 1));\n font-family: SimHei, \"Microsoft JhengHei\", Arial, Helvetica, sans-serif;\n font-weight: bold;\n text-shadow: black 1px 0px 1px, black 0px 1px 1px, black 0px -1px 1px, black -1px 0px 1px;\n line-height: 1.3;\n}\n@media (max-width: 576px) {\n #k-player-danmaku .danmaku {\n --danmaku-font-size: 16px;\n }\n}\n#k-player-danmaku-overlay {\n width: 210px;\n}\n#k-player-danmaku-search-form > * {\n font-size: 14px;\n box-sizing: border-box;\n text-align: left;\n}\n#k-player-danmaku-search-form input,\n#k-player-danmaku-search-form select {\n display: block;\n margin-top: 4px;\n width: 100%;\n}\n#k-player-danmaku-search-form label {\n display: block;\n}\n#k-player-danmaku-search-form label span {\n line-height: 1.4;\n}\n#k-player-danmaku-search-form label + label {\n margin-top: 8px;\n}\n#k-player-danmaku-search-form .open-danmaku-list {\n cursor: pointer;\n transition: color 0.15s;\n}\n#k-player-danmaku-search-form .open-danmaku-list:hover * {\n color: var(--k-player-primary-color);\n}\n#k-player-danmaku-search-form .specific-thanks {\n color: #757575;\n font-size: 12px;\n position: absolute;\n left: 8px;\n bottom: 8px;\n user-select: none;\n}\n#k-player-danmaku-setting-form {\n padding: 0;\n}\n#k-player-danmaku-setting-form input {\n margin: 0;\n}\n#k-player-danmaku-filter-form {\n padding: 0;\n}\n#k-player-danmaku-filter-form .ft-input-wrapper {\n display: flex;\n align-items: center;\n}\n#k-player-danmaku-filter-form .ft-input-wrapper > div {\n flex: 1;\n}\n#k-player-danmaku-filter-form .ft-input-wrapper > div input {\n width: 100%;\n}\n#k-player-danmaku-filter-form .ft-input-wrapper label {\n margin-left: 8px;\n border: 0;\n color: white;\n cursor: pointer;\n transition: color 0.15s;\n white-space: nowrap;\n user-select: none;\n}\n#k-player-danmaku-filter-form .ft-input-wrapper label:hover {\n color: var(--k-player-primary-color);\n}\n#k-player-danmaku-filter-table {\n margin-top: 8px;\n}\n#k-player-danmaku-filter-table .ft-body {\n height: 200px;\n overflow: auto;\n}\n#k-player-danmaku-filter-table .ft-body::-webkit-scrollbar {\n display: none;\n}\n#k-player-danmaku-filter-table .ft-row {\n display: flex;\n border-radius: 4px;\n transition: all 0.15s;\n}\n#k-player-danmaku-filter-table .ft-row:hover {\n background: var(--k-player-background-highlight);\n}\n#k-player-danmaku-filter-table .ft-content {\n padding: 4px 8px;\n flex: 1px;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n#k-player-danmaku-filter-table .ft-op {\n flex-shrink: 0;\n padding: 4px 8px;\n}\n#k-player-danmaku-filter-table a {\n color: white;\n cursor: pointer;\n transition: color 0.15s;\n user-select: none;\n}\n#k-player-danmaku-filter-table a:hover {\n color: var(--k-player-primary-color);\n}\n#k-player-danmaku-log {\n position: absolute;\n inset: 0;\n padding: 8px;\n overflow: auto;\n}\n#k-player-danmaku-log .k-player-danmaku-log-item {\n border-bottom: 1px solid rgba(255, 255, 255, 0.2);\n padding-bottom: 4px;\n margin-bottom: 4px;\n line-height: 1.4;\n}\n#k-player-danmaku-log .k-player-danmaku-log-content {\n padding: 4px 8px;\n border-radius: 4px;\n background: rgba(255, 255, 255, 0.2);\n margin-top: 4px;\n}\n#k-player-danmaku-log .k-player-danmaku-log-code {\n white-space: pre-wrap;\n word-wrap: break-word;\n display: -webkit-box;\n -webkit-line-clamp: 3;\n line-clamp: 3;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n max-height: 60px;\n font-size: 12px;\n}\n\n#k-player-pbp {\n position: absolute;\n top: -17px;\n height: 28px;\n -webkit-appearance: none;\n appearance: none;\n left: 0;\n position: absolute;\n margin-left: calc(var(--plyr-range-thumb-height, 13px) * -0.5);\n margin-right: calc(var(--plyr-range-thumb-height, 13px) * -0.5);\n width: calc(100% + var(--plyr-range-thumb-height, 13px));\n pointer-events: none;\n}\n\n#k-player-pbp-played-path {\n color: var(--k-player-primary-color);\n}\n\n.plyr__controls__item.plyr__progress__container:hover #k-player-pbp {\n top: -18px;\n}\n\n.plyr__switch-danmaku .icon--pressed {\n --color: var(--k-player-primary-color);\n transition: 0.3s all ease;\n}\n\n.plyr__switch-danmaku:hover .icon--pressed {\n --color: white;\n}\n\n.k-popover-active .plyr__tooltip {\n display: none;\n}\n\n.k-player-controls-force-show.plyr .plyr__controls {\n opacity: 1;\n pointer-events: auto;\n transform: translateY(0);\n}\n\n.k-player-danmaku-list * {\n box-sizing: border-box;\n font-size: 14px;\n line-height: normal;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\", sans-serif;\n}\n.k-player-danmaku-list .k-modal-body {\n padding: 0;\n}\n.k-player-danmaku-list-wrapper {\n height: 500px;\n max-height: 80vh;\n display: flex;\n flex-direction: column;\n}\n.k-player-danmaku-list-source-filter {\n display: flex;\n align-items: center;\n white-space: nowrap;\n padding: 16px;\n}\n.k-player-danmaku-list-source {\n flex: 1;\n min-width: 0;\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n}\n.k-player-danmaku-list-table-wrapper {\n flex: 1;\n min-height: 0;\n overflow-y: scroll;\n position: relative;\n}\n.k-player-danmaku-list-table-wrapper::-webkit-scrollbar {\n width: 8px;\n}\n.k-player-danmaku-list-table-wrapper::-webkit-scrollbar-thumb {\n background: rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n}\n.k-player-danmaku-list-table-wrapper::-webkit-scrollbar-thumb:hover {\n background-color: rgba(0, 0, 0, 0.45);\n}\n.k-player-danmaku-list-table {\n width: 100%;\n border-spacing: 0;\n border-collapse: separate;\n table-layout: fixed;\n}\n.k-player-danmaku-list-table th,\n.k-player-danmaku-list-table td {\n padding: 8px;\n border-bottom: 1px solid #f1f1f1;\n word-wrap: break-word;\n word-break: break-all;\n white-space: nowrap;\n}\n.k-player-danmaku-list-table th {\n position: sticky;\n background-color: white;\n top: 0;\n z-index: 1;\n}\n.k-player-danmaku-list-table th:nth-child(1) {\n width: 55px;\n}\n.k-player-danmaku-list-table td:nth-child(2) {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.k-player-danmaku-list-table th:nth-child(3) {\n width: 100px;\n}";
  4507. injectCss(css$9,{});
  4508.  
  4509. function parsePakkuDanmakuXML(xml) {
  4510. const $xml = $(xml);
  4511. return $xml.find("d").map((_, el) => {
  4512. const p = el.getAttribute("p");
  4513. const [
  4514. time,
  4515. type,
  4516. fontSize,
  4517. color,
  4518. sendTime,
  4519. pool,
  4520. senderHash,
  4521. id,
  4522. weight
  4523. ] = p.split(",");
  4524. return {
  4525. mode: { 1: "rtl", 4: "bottom", 5: "top" }[type] || "rtl",
  4526. text: el.textContent,
  4527. time: parseFloat(time),
  4528. style: { color: convert32ToHex(color) },
  4529. user: { source: "Pakku", id: senderHash }
  4530. };
  4531. }).toArray();
  4532. }
  4533.  
  4534. function createProgressBarPower($pbp, duration, comments) {
  4535. const data = comments.map((cmt) => cmt.time);
  4536. const svgMaxLength = 1e3;
  4537. const size = 100;
  4538. const stepLength = svgMaxLength / size;
  4539. const stepTime = duration / size;
  4540. const counts = [];
  4541. let i = 0, j = 0;
  4542. while (i++ <= size) {
  4543. const base = stepTime * i;
  4544. let count = 0;
  4545. while (data[j++] < base) {
  4546. count++;
  4547. }
  4548. counts.push(count);
  4549. }
  4550. let start = "M 0 100 L ";
  4551. let end = " 1000.0 80.0 L 1000 100 Z";
  4552. const maxCount = Math.max(Math.max(...counts), 1);
  4553. const points = [];
  4554. counts.forEach((count, i2) => {
  4555. const x = i2 * stepLength;
  4556. const y = (1 - count / maxCount) * 80;
  4557. if (i2 !== 0)
  4558. points.push({ x: (x - stepLength / 2).toFixed(2), y: y.toFixed(2) });
  4559. if (i2 !== counts.length - 1)
  4560. points.push({ x: x.toFixed(2), y: y.toFixed(2) });
  4561. });
  4562. for (let i2 = 0; i2 < points.length; ) {
  4563. const p1 = points[i2++];
  4564. const p2 = points[i2++];
  4565. start += `${p1.x} ${p1.y} C ${p2.x} ${p1.y}, ${p2.x} ${p2.y},`;
  4566. }
  4567. $pbp.find("path").attr("d", start + end);
  4568. $(".plyr__controls__item.plyr__progress__container .plyr__progress").append(
  4569. $pbp
  4570. );
  4571. }
  4572.  
  4573. const defaultConfig = {
  4574. showDanmaku: false,
  4575. opacity: 0.6,
  4576. showPbp: false,
  4577. danmakuSpeed: 1,
  4578. danmakuFontSize: 1,
  4579. danmakuMode: ["top", "color"],
  4580. danmakuFilter: [],
  4581. danmakuScrollAreaPercent: 1,
  4582. danmakuMerge: false,
  4583. danmakuDensity: 1,
  4584. danmakuOverlap: false,
  4585. danmakuSourceDisabledList: []
  4586. };
  4587. class DanmakuPlugin {
  4588. constructor(player, videoInfo) {
  4589. this.baseDanmkuSpeed = 130;
  4590. this.refreshDanmaku = () => {
  4591. this.stop();
  4592. this.autoStart();
  4593. };
  4594. this.showTips = (message, duration = 3e3) => {
  4595. this.elements.$tips.finish().text(message).fadeIn("fast");
  4596. if (duration > 0)
  4597. this.elements.$tips.delay(duration).fadeOut("fast");
  4598. };
  4599. this.messageLog = (message, options) => {
  4600. const { duration = 3e3, detail } = options || {};
  4601. this.showTips(message, duration);
  4602. this.player.message.info(message, duration);
  4603. this.log(message, detail);
  4604. };
  4605. this.count = 0;
  4606. this.log = (message, detail) => {
  4607. const $details = $('<div class="k-player-danmaku-log-item"></div>');
  4608. const $title = $('<div class="k-player-danmaku-log-title"></div>');
  4609. $title.text(`[${this.count++}] ${message}`);
  4610. $details.append($title);
  4611. if (detail) {
  4612. const $content = $('<div class="k-player-danmaku-log-content"></div>');
  4613. const $code = $('<div class="k-player-danmaku-log-code"></div>');
  4614. $code.text(JSON.stringify(detail));
  4615. $code.attr("title", JSON.stringify(detail, null, 2));
  4616. $content.append($code);
  4617. $details.append($content);
  4618. }
  4619. this.elements.$log.append($details);
  4620. };
  4621. this.stop = () => {
  4622. var _a;
  4623. (_a = this.core) == null ? void 0 : _a.hide();
  4624. };
  4625. this.start = () => {
  4626. const run = () => {
  4627. if (!this.player.media.duration)
  4628. return requestAnimationFrame(run);
  4629. if (!this.state.comments)
  4630. return;
  4631. const nextComments = this.adjustCommentCount(this.state.comments);
  4632. this.elements.$openDanmakuList.find('[data-id="count"]').text(`(${nextComments.length}/${this.state.comments.length})`);
  4633. if (this.player.localConfig.showDanmaku) {
  4634. if (!this.core) {
  4635. this.core = new Danmaku({
  4636. container: this.elements.$danmakuContainer[0],
  4637. media: this.player.media,
  4638. comments: nextComments,
  4639. merge: this.player.localConfig.danmakuMerge,
  4640. scrollAreaPercent: this.player.localConfig.danmakuScrollAreaPercent,
  4641. overlap: this.player.localConfig.danmakuOverlap
  4642. });
  4643. } else {
  4644. this.core.reload(nextComments);
  4645. this.core.show();
  4646. }
  4647. this.core.speed = this.baseDanmkuSpeed * this.player.localConfig.danmakuSpeed;
  4648. }
  4649. if (this.player.localConfig.showPbp) {
  4650. createProgressBarPower(
  4651. this.elements.$pbp,
  4652. this.player.media.duration,
  4653. nextComments
  4654. );
  4655. }
  4656. };
  4657. requestAnimationFrame(run);
  4658. };
  4659. this.adjustCommentCount = (comments) => {
  4660. let ret = comments;
  4661. ret = ret.filter((cmt) => {
  4662. const isFilterMatch = this.player.localConfig.danmakuFilter.some(
  4663. (filter) => {
  4664. if (/^\/.*\/$/.test(filter)) {
  4665. const re = new RegExp(filter.slice(1, -1));
  4666. return re.test(cmt.text);
  4667. } else {
  4668. return cmt.text.includes(filter);
  4669. }
  4670. }
  4671. );
  4672. return !isFilterMatch;
  4673. });
  4674. ret = ret.filter((cmt) => {
  4675. const isDisabledSource = this.player.localConfig.danmakuSourceDisabledList.includes(
  4676. cmt.user.source
  4677. );
  4678. return !isDisabledSource;
  4679. });
  4680. const mode = this.player.localConfig.danmakuMode;
  4681. if (!mode.includes("color")) {
  4682. ret = ret.filter(
  4683. (cmt) => cmt.style.color === "#ffffff"
  4684. );
  4685. }
  4686. if (!mode.includes("bottom")) {
  4687. ret = ret.filter((cmt) => cmt.mode !== "bottom");
  4688. }
  4689. if (!mode.includes("top")) {
  4690. ret = ret.filter((cmt) => cmt.mode !== "top");
  4691. }
  4692. const maxLength = Math.round(
  4693. 3e3 / (24 * 60) * this.player.media.duration * this.player.localConfig.danmakuDensity
  4694. );
  4695. if (ret.length > maxLength) {
  4696. let ratio = ret.length / maxLength;
  4697. ret = [...new Array(maxLength)].map((_, i) => ret[Math.floor(i * ratio)]);
  4698. }
  4699. return ret;
  4700. };
  4701. this.loadEpisode = async (episodeId) => {
  4702. this.stop();
  4703. this.state.comments = await getComments(episodeId);
  4704. this.state.syncDiff = 0;
  4705. this.state.state = 3 /* getComments */;
  4706. this.start();
  4707. this.player.message.destroy();
  4708. this.messageLog(`\u756A\u5267\uFF1A${this.elements.$animes.find(":selected").text()}`);
  4709. this.messageLog(`\u7AE0\u8282\uFF1A${this.elements.$episodes.find(":selected").text()}`);
  4710. this.messageLog(`\u5DF2\u52A0\u8F7D ${this.state.comments.length} \u6761\u5F39\u5E55`);
  4711. };
  4712. this.setAnimes = (animes) => {
  4713. this.state.animes = animes;
  4714. renderSelectOptions(this.elements.$animes, this.state.animes);
  4715. };
  4716. this.setEpisodes = (episodes) => {
  4717. this.state.episodes = episodes;
  4718. renderSelectOptions(this.elements.$episodes, this.state.episodes);
  4719. };
  4720. this.searchAnime = lockWrap(async (name) => {
  4721. this.log(`\u641C\u7D22\u756A\u5267: ${name}`);
  4722. if (!name || name.length < 2)
  4723. return this.messageLog("\u756A\u5267\u540D\u79F0\u4E0D\u5C11\u4E8E2\u4E2A\u5B57");
  4724. try {
  4725. this.setAnimes([]);
  4726. this.setEpisodes([]);
  4727. this.messageLog("\u6B63\u5728\u641C\u7D22\u756A\u5267\u4E2D...");
  4728. this.setAnimes(await queryAnimes(name));
  4729. this.messageLog(`\u627E\u5230 ${this.state.animes.length} \u90E8\u756A\u5267`, {
  4730. detail: this.state.animes
  4731. });
  4732. this.state.state = 1 /* searchedAnimes */;
  4733. this.autoMatchAnime();
  4734. } catch (error) {
  4735. console.error(error);
  4736. this.messageLog("\u5F39\u5E55\u670D\u52A1\u5F02\u5E38\uFF0C" + error.message, {
  4737. detail: error.toString()
  4738. });
  4739. }
  4740. });
  4741. this.searchEpisodes = async (animeId) => {
  4742. this.log("\u641C\u7D22\u5267\u96C6", { animeId });
  4743. try {
  4744. this.setEpisodes([]);
  4745. this.messageLog("\u6B63\u5728\u641C\u7D22\u5267\u96C6\u4E2D...");
  4746. this.setEpisodes(await queryEpisodes(animeId));
  4747. this.messageLog(`\u627E\u5230 ${this.state.episodes.length} \u96C6`, {
  4748. detail: this.state.episodes
  4749. });
  4750. this.state.state = 2 /* findEpisodes */;
  4751. this.autoMatchEpisode();
  4752. } catch (error) {
  4753. console.error(error);
  4754. this.messageLog("\u5F39\u5E55\u670D\u52A1\u5F02\u5E38\uFF0C" + error.message, {
  4755. detail: error.toString()
  4756. });
  4757. }
  4758. };
  4759. this.autoMatchAnime = () => {
  4760. let anime = this.state.animes.find((anime2) => {
  4761. const storeAnime = storageAnimeName(this.state.videoInfo.rawName);
  4762. if (storeAnime) {
  4763. return anime2.id === storeAnime.id;
  4764. }
  4765. return anime2.name === this.state.videoInfo.rawName;
  4766. });
  4767. if (!anime) {
  4768. anime = this.state.animes[0];
  4769. }
  4770. this.elements.$animes.val("");
  4771. if (anime) {
  4772. this.elements.$animes.val(anime.id);
  4773. this.elements.$animes.trigger("change");
  4774. } else {
  4775. this.messageLog("\u5F39\u5E55\u672A\u80FD\u81EA\u52A8\u5339\u914D\u6570\u636E\u6E90\uFF0C\u8BF7\u624B\u52A8\u641C\u7D22");
  4776. }
  4777. };
  4778. this.autoMatchEpisode = async () => {
  4779. let episodeName = this.state.videoInfo.episode;
  4780. let episode;
  4781. let storedEpisodeId = storageEpisodeName(
  4782. `${this.state.videoInfo.rawName}.${this.state.videoInfo.episode}`
  4783. );
  4784. if (storedEpisodeId) {
  4785. episode = this.state.episodes.find(
  4786. (episode2) => String(episode2.id) === storedEpisodeId
  4787. );
  4788. }
  4789. if (!episode && !isNaN(+episodeName)) {
  4790. episode = this.state.episodes.find(
  4791. (episode2) => new RegExp(`${episodeName}[\u8BDD\u96C6]`).test(episode2.name)
  4792. );
  4793. if (!episode) {
  4794. episode = this.state.episodes.find(
  4795. (episode2) => episode2.name.includes(episodeName)
  4796. );
  4797. }
  4798. }
  4799. this.elements.$episodes.val("");
  4800. if (episode) {
  4801. this.elements.$episodes.val(episode.id);
  4802. this.elements.$episodes.trigger("change");
  4803. } else {
  4804. this.messageLog("\u5F39\u5E55\u672A\u80FD\u81EA\u52A8\u5339\u914D\u6570\u636E\u6E90\uFF0C\u8BF7\u624B\u52A8\u641C\u7D22");
  4805. }
  4806. };
  4807. this.injectDanmakuDropEvent = () => {
  4808. this.player.onDrop((e) => {
  4809. var _a;
  4810. e.preventDefault();
  4811. const file = (_a = e.dataTransfer) == null ? void 0 : _a.files[0];
  4812. if ((file == null ? void 0 : file.type) === "text/xml") {
  4813. const reader = new FileReader();
  4814. reader.onload = async () => {
  4815. this.stop();
  4816. this.state.comments = parsePakkuDanmakuXML(reader.result);
  4817. this.state.syncDiff = 0;
  4818. this.state.state = 3 /* getComments */;
  4819. this.start();
  4820. this.messageLog(`\u5DF2\u52A0\u8F7D ${this.state.comments.length} \u6761\u5F39\u5E55`);
  4821. };
  4822. reader.readAsText(file);
  4823. }
  4824. });
  4825. };
  4826. this.initEvents = (name) => {
  4827. this.elements.$animeName.val(name);
  4828. this.elements.$animeName.on("keypress", (e) => {
  4829. if (e.key === "Enter")
  4830. this.searchAnime(this.elements.$animeName.val());
  4831. });
  4832. this.elements.$animeName.on("blur", (e) => {
  4833. this.searchAnime(this.elements.$animeName.val());
  4834. });
  4835. this.elements.$animes.on("change", (e) => {
  4836. const animeId = this.elements.$animes.val();
  4837. const anime = this.state.animes.find((anime2) => anime2.id === animeId);
  4838. if (!anime)
  4839. return;
  4840. storageAnimeName(this.state.videoInfo.rawName, {
  4841. id: anime.id,
  4842. name: anime.name,
  4843. keyword: this.elements.$animeName.val()
  4844. });
  4845. this.searchEpisodes(anime.id);
  4846. });
  4847. this.elements.$episodes.on("change", (e) => {
  4848. const episodeId = this.elements.$episodes.val();
  4849. const animeId = this.elements.$animes.val();
  4850. const anime = this.state.animes.find((anime2) => anime2.id === animeId);
  4851. if (!anime || !episodeId)
  4852. return;
  4853. storageAnimeName(this.state.videoInfo.rawName, {
  4854. id: anime.id,
  4855. name: anime.name,
  4856. keyword: this.elements.$animeName.val()
  4857. });
  4858. storageEpisodeName(
  4859. `${this.state.videoInfo.rawName}.${this.state.videoInfo.episode}`,
  4860. episodeId
  4861. );
  4862. this.loadEpisode(episodeId);
  4863. });
  4864. this.elements.$danmakuSwitch.toggleClass(
  4865. "plyr__control--pressed",
  4866. this.player.localConfig.showDanmaku
  4867. ).on("click", () => {
  4868. this.switchDanmaku();
  4869. });
  4870. const resizeOb = new ResizeObserver(() => {
  4871. var _a;
  4872. (_a = this.core) == null ? void 0 : _a.resize();
  4873. });
  4874. resizeOb.observe(this.elements.$danmakuContainer[0]);
  4875. const mutationOb = new MutationObserver(async () => {
  4876. Object.assign(
  4877. this.state.videoInfo,
  4878. await runtime.getCurrentVideoNameAndEpisode()
  4879. );
  4880. this.state.state = 1 /* searchedAnimes */;
  4881. this.autoStart();
  4882. });
  4883. mutationOb.observe(this.player.media, { attributeFilter: ["src"] });
  4884. this.player.initInputEvent();
  4885. this.elements.$showDanmaku.prop("checked", this.player.localConfig.showDanmaku).on("change", (e) => {
  4886. this.switchDanmaku(e.target.checked);
  4887. });
  4888. this.elements.$showPbp.prop("checked", this.player.localConfig.showPbp).on("change", (e) => {
  4889. const chekced = e.target.checked;
  4890. this.elements.$pbp.toggle(chekced);
  4891. this.player.configSaveToLocal("showPbp", chekced);
  4892. if (chekced)
  4893. this.autoStart();
  4894. });
  4895. this.elements.$pbp.toggle(this.player.localConfig.showPbp || false);
  4896. const $pbpPlayed = this.elements.$pbp.find("#k-player-pbp-played-path");
  4897. this.player.on("timeupdate", () => {
  4898. $pbpPlayed.attr(
  4899. "width",
  4900. (this.player.currentTime / this.player.plyr.duration || 0) * 100 + "%"
  4901. );
  4902. });
  4903. this.elements.$danmakuMerge.prop("checked", this.player.localConfig.danmakuMerge).on("change", (e) => {
  4904. const chekced = e.target.checked;
  4905. this.player.configSaveToLocal("danmakuMerge", chekced);
  4906. if (this.core)
  4907. this.core.merge = chekced;
  4908. });
  4909. this.elements.$danmakuOverlap.prop("checked", this.player.localConfig.danmakuOverlap).on("change", (e) => {
  4910. const chekced = e.target.checked;
  4911. this.player.configSaveToLocal("danmakuOverlap", chekced);
  4912. if (this.core)
  4913. this.core.overlap = chekced;
  4914. });
  4915. addRangeListener({
  4916. $dom: this.elements.$opacity,
  4917. name: "opacity",
  4918. onInput: (v) => {
  4919. this.elements.$danmakuContainer.css({ opacity: v });
  4920. },
  4921. player: this.player
  4922. });
  4923. addRangeListener({
  4924. $dom: this.elements.$danmakuFontSize,
  4925. name: "danmakuFontSize",
  4926. onInput: (v) => {
  4927. this.elements.$danmakuContainer.css("--danmaku-font-size-scale", v);
  4928. },
  4929. player: this.player
  4930. });
  4931. addRangeListener({
  4932. $dom: this.elements.$danmakuSpeed,
  4933. name: "danmakuSpeed",
  4934. onChange: (v) => {
  4935. if (this.core)
  4936. this.core.speed = this.baseDanmkuSpeed * v;
  4937. },
  4938. player: this.player
  4939. });
  4940. addRangeListener({
  4941. $dom: this.elements.$danmakuDensity,
  4942. name: "danmakuDensity",
  4943. onChange: this.refreshDanmaku,
  4944. player: this.player
  4945. });
  4946. addRangeListener({
  4947. $dom: this.elements.$danmakuScrollAreaPercent,
  4948. name: "danmakuScrollAreaPercent",
  4949. onChange: (val) => {
  4950. if (this.core)
  4951. this.core.scrollAreaPercent = val;
  4952. },
  4953. player: this.player
  4954. });
  4955. setCheckboxGroupValue(
  4956. this.elements.$danmakuMode,
  4957. this.player.localConfig.danmakuMode
  4958. );
  4959. this.elements.$danmakuMode.on("change", () => {
  4960. const modes = getCheckboxGroupValue(this.elements.$danmakuMode);
  4961. this.player.configSaveToLocal("danmakuMode", modes);
  4962. if (this.core) {
  4963. this.refreshDanmaku();
  4964. }
  4965. });
  4966. createFilter(this.player, this.refreshDanmaku);
  4967. createDanmakuList(
  4968. this.player,
  4969. () => this.state.comments,
  4970. this.refreshDanmaku
  4971. );
  4972. this.injectDanmakuDropEvent();
  4973. };
  4974. this.switchDanmaku = (bool) => {
  4975. bool != null ? bool : bool = !this.player.localConfig.showDanmaku;
  4976. this.player.configSaveToLocal("showDanmaku", bool);
  4977. this.elements.$danmakuSwitch.toggleClass("plyr__control--pressed", bool);
  4978. this.elements.$showDanmaku.prop("checked", bool);
  4979. this.messageLog(`\u5F39\u5E55${bool ? "\u5F00\u542F" : "\u5173\u95ED"}`);
  4980. if (bool) {
  4981. this.autoStart();
  4982. } else {
  4983. this.stop();
  4984. }
  4985. };
  4986. this.autoStart = () => {
  4987. if (!(this.player.localConfig.showDanmaku || this.player.localConfig.showPbp))
  4988. return;
  4989. switch (this.state.state) {
  4990. case 0 /* unSearched */:
  4991. this.searchAnime(this.elements.$animeName.val());
  4992. break;
  4993. case 1 /* searchedAnimes */:
  4994. this.searchEpisodes(this.elements.$animes.val());
  4995. break;
  4996. case 2 /* findEpisodes */:
  4997. this.autoMatchEpisode();
  4998. break;
  4999. case 3 /* getComments */:
  5000. this.start();
  5001. break;
  5002. }
  5003. };
  5004. this.player = player;
  5005. this.elements = new DanmakuElements(player);
  5006. this.player.danmaku = this;
  5007. this.state = {
  5008. state: 0 /* unSearched */,
  5009. animes: [],
  5010. episodes: [],
  5011. comments: [],
  5012. videoInfo,
  5013. syncDiff: 0
  5014. };
  5015. this.player.localConfig = Object.assign(
  5016. {},
  5017. defaultConfig,
  5018. this.player.localConfig
  5019. );
  5020. this.player.$videoWrapper.append(this.elements.$danmakuContainer);
  5021. this.elements.$danmaku.insertBefore(player.$searchActions);
  5022. this.elements.$danmaku.before(this.elements.$danmakuSwitch);
  5023. let defaultSearchName = storageAnimeName(videoInfo.rawName) || videoInfo.name;
  5024. this.initEvents(
  5025. typeof defaultSearchName === "object" ? defaultSearchName.keyword : defaultSearchName
  5026. );
  5027. this.log("\u5F53\u524D\u89C6\u9891\u4FE1\u606F", { videoInfo, searchInfo: defaultSearchName });
  5028. this.autoStart();
  5029. }
  5030. }
  5031. Shortcuts.keyBindings.registerKeyBinding({
  5032. command: Commands.danmakuSwitch,
  5033. description: "\u663E\u793A/\u9690\u85CF\u5F39\u5E55",
  5034. key: "D"
  5035. });
  5036. Shortcuts.registerCommand(Commands.danmakuSwitch, function() {
  5037. var _a;
  5038. (_a = this.danmaku) == null ? void 0 : _a.switchDanmaku();
  5039. });
  5040. Shortcuts.keyBindings.registerKeyBinding({
  5041. command: Commands.danmakuSyncBack,
  5042. description: "\u5F39\u5E55\u6EDE\u540E0.5s",
  5043. key: ","
  5044. });
  5045. Shortcuts.registerCommand(Commands.danmakuSyncBack, function() {
  5046. var _a;
  5047. if (!((_a = this.danmaku) == null ? void 0 : _a.state.comments))
  5048. return;
  5049. this.danmaku.state.comments.forEach((comment) => {
  5050. comment.time += 0.5;
  5051. });
  5052. this.danmaku.state.syncDiff += 0.5;
  5053. this.message.destroy();
  5054. this.message.info(`\u5F39\u5E55\u540C\u6B65\uFF1A\u6EDE\u540E\u4E860.5s\uFF08${this.danmaku.state.syncDiff}s\uFF09`);
  5055. this.danmaku.refreshDanmaku();
  5056. });
  5057. Shortcuts.keyBindings.registerKeyBinding({
  5058. command: Commands.danmakuSyncForward,
  5059. description: "\u5F39\u5E55\u8D85\u524D0.5s",
  5060. key: "."
  5061. });
  5062. Shortcuts.registerCommand(Commands.danmakuSyncForward, function() {
  5063. var _a;
  5064. if (!((_a = this.danmaku) == null ? void 0 : _a.state.comments))
  5065. return;
  5066. this.danmaku.state.comments.forEach((comment) => {
  5067. comment.time += -0.5;
  5068. });
  5069. this.danmaku.state.syncDiff += -0.5;
  5070. this.message.destroy();
  5071. this.message.info(`\u5F39\u5E55\u540C\u6B65\uFF1A\u8D85\u524D\u4E860.5s\uFF08${this.danmaku.state.syncDiff}s\uFF09`);
  5072. this.danmaku.refreshDanmaku();
  5073. });
  5074. Shortcuts.keyBindings.registerKeyBinding({
  5075. command: Commands.danmakuSyncRestore,
  5076. description: "\u5F39\u5E55\u540C\u6B65\u590D\u4F4D",
  5077. key: "/"
  5078. });
  5079. Shortcuts.registerCommand(Commands.danmakuSyncRestore, function() {
  5080. var _a;
  5081. if (!((_a = this.danmaku) == null ? void 0 : _a.state.comments))
  5082. return;
  5083. this.danmaku.state.comments.forEach((comment) => {
  5084. comment.time += -this.danmaku.state.syncDiff;
  5085. });
  5086. this.danmaku.state.syncDiff = 0;
  5087. this.message.destroy();
  5088. this.message.info("\u5F39\u5E55\u540C\u6B65\uFF1A\u5DF2\u590D\u4F4D");
  5089. this.danmaku.refreshDanmaku();
  5090. });
  5091. const renderSelectOptions = (target, options) => {
  5092. const html = options.reduce(
  5093. (html2, option) => html2 + `<option value="${option.id}">${option.name}</option>`,
  5094. ""
  5095. );
  5096. target.html(html);
  5097. };
  5098. async function setup$1(player) {
  5099. const info = await runtime.getCurrentVideoNameAndEpisode();
  5100. if (!info)
  5101. return;
  5102. new DanmakuPlugin(player, info);
  5103. }
  5104.  
  5105. var css$8 = "#k-autoseek-config {\n line-height: 32px;\n font-size: 14px;\n}\n#k-autoseek-config .k-autoseek-config-tips {\n font-size: 12px;\n color: #666;\n margin-top: 8px;\n line-height: 1.6;\n}\n#k-autoseek-config .k-autoseek-config-tips summary {\n cursor: pointer;\n}\n#k-autoseek-config .k-autoseek-config-tips .k-autoseek-config-tips-title {\n font-weight: 500;\n margin-bottom: 4px;\n}\n\n#k-autoseek-overlay {\n position: absolute;\n inset: 0;\n pointer-events: none;\n z-index: 1000;\n}\n#k-autoseek-overlay .k-autoseek-segment {\n position: absolute;\n background: white;\n top: 50%;\n transform: translateY(-50%);\n width: calc(var(--plyr-range-track-height) + 2px);\n height: calc(var(--plyr-range-track-height) + 2px);\n border-radius: 50%;\n}";
  5106. injectCss(css$8,{});
  5107.  
  5108. var T = {"k-autoseek-config":"<div id=\"k-autoseek-config\">\r\n <form class=\"k-settings-list\">\r\n <div class=\"k-settings-item\">\r\n <label class=\"k-checkbox\">\r\n <input type=\"checkbox\" name=\"start.enabled\" >\r\n 跳过片头\r\n </label>\r\n <input \n type=\"number\"\r\n name=\"start.start\"\r\n class=\"k-input-number\"\r\n placeholder=\"起跳时间(秒)\"\r\n >\r\n <input \n type=\"number\"\r\n name=\"start.diff\"\r\n class=\"k-input-number\"\r\n min=\"0\"\r\n placeholder=\"长度(秒)\"\r\n >\r\n </div>\r\n\r\n <div class=\"k-settings-item\">\r\n <label class=\"k-checkbox\">\r\n <input type=\"checkbox\" name=\"end.enabled\" >\r\n 跳过片尾\r\n </label>\r\n <input \n type=\"number\"\r\n name=\"end.start\"\r\n class=\"k-input-number\"\r\n placeholder=\"起跳时间(秒)\"\r\n >\r\n <input \n type=\"number\"\r\n name=\"end.diff\"\r\n class=\"k-input-number\"\r\n placeholder=\"长度(秒)\"\r\n >\r\n </div>\r\n <div class=\"k-autoseek-config-tips\">\r\n <details>\r\n <summary>使用说明</summary>\r\n <div class=\"k-autoseek-config-tips-title\">\r\n 第一个值表示“起跳时间”,二个值表示“跳过多少时间”\r\n </div>\r\n <div>\r\n 例如:在 60s 位置起跳,跳过 85s 时长,视频最终会在 145s 处播放\r\n </div>\r\n <br>\r\n <div class=\"k-autoseek-config-tips-title\">\r\n 结尾的起跳时间可以是小于等于 0 的数字。\r\n </div>\r\n <div>\r\n 例子1:片尾填写 -10 与 60,那么视频倒数 10s 处再往前数 60s\r\n 的位置开始跳转,视频最终在倒数 10s 处播放\r\n </div>\r\n <div>\r\n 例子2:片尾填写 600 与 60,那么正数 600s 处开始跳转 60s,视频最终在\r\n 660s 处播放\r\n </div>\r\n </details>\r\n </div>\r\n <div class=\"k-autoseek-config-tips\">\r\n 仅在当前番剧播放页生效,其他番剧需要重新配置\r\n </div>\r\n </form>\r\n</div>","k-autoseek-overlay":"<div id=\"k-autoseek-overlay\"></div>"};
  5109.  
  5110. var __defProp$2 = Object.defineProperty;
  5111. var __defProps$2 = Object.defineProperties;
  5112. var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
  5113. var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
  5114. var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
  5115. var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
  5116. var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
  5117. var __spreadValues$2 = (a, b) => {
  5118. for (var prop in b || (b = {}))
  5119. if (__hasOwnProp$2.call(b, prop))
  5120. __defNormalProp$2(a, prop, b[prop]);
  5121. if (__getOwnPropSymbols$2)
  5122. for (var prop of __getOwnPropSymbols$2(b)) {
  5123. if (__propIsEnum$2.call(b, prop))
  5124. __defNormalProp$2(a, prop, b[prop]);
  5125. }
  5126. return a;
  5127. };
  5128. var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
  5129. function setFormData(formHTML, data) {
  5130. const $form = $(formHTML);
  5131. $form.find("input[name]").each((_, el) => {
  5132. switch (el.getAttribute("type")) {
  5133. case "checkbox":
  5134. el.checked = get(data, el.name, false);
  5135. break;
  5136. case "number": {
  5137. el.value = get(data, el.name);
  5138. }
  5139. }
  5140. });
  5141. return $form;
  5142. }
  5143. function getFormData(form) {
  5144. const data = {};
  5145. form.find("input[name]").each((_, el) => {
  5146. switch (el.getAttribute("type")) {
  5147. case "checkbox":
  5148. set(data, el.name, el.checked);
  5149. break;
  5150. case "number": {
  5151. const value = isNaN(parseInt(el.value)) ? void 0 : parseInt(el.value);
  5152. set(data, el.name, value);
  5153. }
  5154. }
  5155. });
  5156. return data;
  5157. }
  5158. Shortcuts.keyBindings.registerKeyBinding({
  5159. command: "autoSeekConfig" /* autoSeekConfig */,
  5160. description: "\u8BBE\u7F6E\u8DF3\u8FC7\u7247\u6BB5",
  5161. key: "G"
  5162. });
  5163. Shortcuts.registerCommand(
  5164. "autoSeekConfig" /* autoSeekConfig */,
  5165. function() {
  5166. let open = false;
  5167. return function() {
  5168. if (!this.autoSeek.scope) {
  5169. this.message.info("\u8BE5\u7F51\u7AD9\u6682\u672A\u9002\u914D\u81EA\u52A8\u8DF3\u8FC7\u7247\u6BB5\u529F\u80FD\uFF0C\u656C\u8BF7\u671F\u5F85");
  5170. return;
  5171. }
  5172. if (open)
  5173. return;
  5174. open = true;
  5175. this.plyr.pause();
  5176. modal({
  5177. width: 350,
  5178. title: "\u8DF3\u8FC7\u7247\u6BB5\u8BBE\u7F6E",
  5179. content: setFormData(T["k-autoseek-config"], this.autoSeek.getConfig()),
  5180. afterClose: () => {
  5181. open = false;
  5182. this.plyr.play();
  5183. },
  5184. onOk: () => {
  5185. const config = getFormData($("#k-autoseek-config form"));
  5186. if (config.start.enabled && (isNil(config.start.start) || isNil(config.start.diff))) {
  5187. config.start.enabled = false;
  5188. delete config.start.start;
  5189. delete config.start.diff;
  5190. }
  5191. if (config.end.enabled && (isNil(config.end.start) || isNil(config.end.diff))) {
  5192. config.end.enabled = false;
  5193. delete config.end.start;
  5194. delete config.end.diff;
  5195. }
  5196. if (config.start.diff) {
  5197. config.start.diff = Math.abs(config.start.diff);
  5198. }
  5199. if (config.end.diff) {
  5200. config.end.diff = Math.abs(config.end.diff);
  5201. }
  5202. this.autoSeek.setConfig(config);
  5203. }
  5204. });
  5205. };
  5206. }()
  5207. );
  5208. const DefaultConfig = {
  5209. start: { enabled: false, start: 0, diff: 85 },
  5210. end: { enabled: false }
  5211. };
  5212. class AutoSeek {
  5213. constructor(player) {
  5214. this.player = player;
  5215. this.config = DefaultConfig;
  5216. this.localStoreKey = "k-autoSeek-config";
  5217. this.player.autoSeek = this;
  5218. this.player.getAnimeScope().then((scope) => {
  5219. this.init(scope);
  5220. });
  5221. }
  5222. getConfig() {
  5223. if (!this.scope)
  5224. throw new Error("AutoSeek scope is not set");
  5225. const store = local.getItem(
  5226. this.localStoreKey,
  5227. {}
  5228. );
  5229. return store[this.scope] || DefaultConfig;
  5230. }
  5231. setConfig(config) {
  5232. if (!this.scope)
  5233. throw new Error("AutoSeek scope is not set");
  5234. this.config = config;
  5235. local.setItem(this.localStoreKey, __spreadProps$2(__spreadValues$2({}, local.getItem(this.localStoreKey, {})), {
  5236. [this.scope]: config
  5237. }));
  5238. this.refresh();
  5239. }
  5240. init(scope) {
  5241. this.scope = scope;
  5242. this.config = this.getConfig();
  5243. this.player.on("loadedmetadata", () => {
  5244. this.refresh();
  5245. });
  5246. let isSeeking = false;
  5247. const container = this.player.plyr.elements.controls;
  5248. if (container) {
  5249. const progressContainer = container.querySelector(".plyr__progress");
  5250. if (progressContainer) {
  5251. progressContainer.addEventListener("mousedown", () => {
  5252. isSeeking = true;
  5253. });
  5254. progressContainer.addEventListener("mouseup", () => {
  5255. isSeeking = false;
  5256. });
  5257. progressContainer.addEventListener("touchstart", () => {
  5258. isSeeking = true;
  5259. });
  5260. progressContainer.addEventListener("touchend", () => {
  5261. isSeeking = false;
  5262. });
  5263. }
  5264. }
  5265. this.player.on(
  5266. "timeupdate",
  5267. throttle(() => {
  5268. const media = this.player.media;
  5269. const currentTime = media.currentTime;
  5270. const duration = media.duration;
  5271. const enabled = this.config.start.enabled || this.config.end.enabled;
  5272. if (!enabled || isSeeking || currentTime >= duration - 3)
  5273. return;
  5274. if (this.config.start.enabled) {
  5275. const start = this.config.start.start || 0;
  5276. const diff = this.config.start.diff || 0;
  5277. if (currentTime >= start && currentTime <= start + diff) {
  5278. this.player.media.currentTime = start + diff;
  5279. }
  5280. }
  5281. if (this.config.end.enabled) {
  5282. const start = this.config.end.start || 0;
  5283. const diff = this.config.end.diff || 0;
  5284. if (start <= 0) {
  5285. if (currentTime >= start + duration - diff && currentTime <= start + duration) {
  5286. this.player.media.currentTime = start + duration;
  5287. }
  5288. } else {
  5289. if (currentTime >= start && currentTime <= start + diff) {
  5290. this.player.media.currentTime = start + diff;
  5291. }
  5292. }
  5293. }
  5294. }, 300)
  5295. );
  5296. }
  5297. refresh() {
  5298. var _a, _b;
  5299. const duration = this.player.media.duration;
  5300. if (!duration)
  5301. return;
  5302. $("#k-autoseek-overlay").remove();
  5303. const enabled = this.config.start.enabled || this.config.end.enabled;
  5304. if (!enabled)
  5305. return;
  5306. const $overlay = $(T["k-autoseek-overlay"]);
  5307. if (this.config.start.enabled) {
  5308. const start = this.config.start.start || 0;
  5309. const $segment = $('<div class="k-autoseek-segment" />');
  5310. $segment.css({
  5311. left: `${start / duration * 100}%`
  5312. });
  5313. $overlay.append($segment);
  5314. }
  5315. if (this.config.end.enabled) {
  5316. const start = this.config.end.start || 0;
  5317. const diff = this.config.end.diff || 0;
  5318. const $segment = $('<div class="k-autoseek-segment" />');
  5319. if (start <= 0) {
  5320. $segment.css({
  5321. left: `${(start + duration - diff) / duration * 100}%`
  5322. });
  5323. } else {
  5324. $segment.css({
  5325. left: `${start / duration * 100}%`
  5326. });
  5327. }
  5328. $overlay.append($segment);
  5329. }
  5330. (_b = (_a = this.player.plyr.elements.container) == null ? void 0 : _a.querySelector(".plyr__progress")) == null ? void 0 : _b.append($overlay[0]);
  5331. }
  5332. }
  5333. function setup(player) {
  5334. new AutoSeek(player);
  5335. }
  5336.  
  5337. KPlayer.register(setup$2);
  5338. KPlayer.register(setup$1);
  5339. KPlayer.register(setup);
  5340.  
  5341. function execInUnsafeWindow(fn) {
  5342. return new Promise((resolve, reject) => {
  5343. const contextId = Math.random().toFixed(16).slice(2);
  5344. window.addEventListener("message", function listener(e) {
  5345. if (e.data && e.data.contextId === contextId) {
  5346. const data = e.data.data;
  5347. resolve(data);
  5348. window.removeEventListener("message", listener);
  5349. script.remove();
  5350. }
  5351. });
  5352. const code = `
  5353. ;(async function runInUnsafeWindow() {
  5354. const data = await (${fn.toString()})()
  5355. window.postMessage({ contextId: '${contextId}', data }, '*')
  5356. })()
  5357. `;
  5358. const script = document.createElement("script");
  5359. script.textContent = code;
  5360. document.body.appendChild(script);
  5361. });
  5362. }
  5363.  
  5364. function queryDom(selector) {
  5365. return new Promise((resolve) => {
  5366. let dom;
  5367. function search() {
  5368. dom = $(selector);
  5369. if (dom.length === 0) {
  5370. requestAnimationFrame(search);
  5371. } else {
  5372. resolve(dom[0]);
  5373. }
  5374. }
  5375. search();
  5376. });
  5377. }
  5378.  
  5379. async function wait(selector) {
  5380. let bool = selector();
  5381. while (!bool) {
  5382. await sleep();
  5383. bool = selector();
  5384. }
  5385. }
  5386.  
  5387. let player;
  5388. const parser$3 = {
  5389. "danmu.yhdmjx.com": async () => {
  5390. const video = await queryDom("video");
  5391. video.src = "";
  5392. player = new KPlayer("#player", { eventToParentWindow: true });
  5393. player.src = await execInUnsafeWindow(
  5394. () => window.v_decrypt(window.config.url, window._token_key, window.key_token)
  5395. );
  5396. },
  5397. "pro.ascepan.top": async () => {
  5398. const video = await queryDom("video");
  5399. video.src = "";
  5400. player = new KPlayer("#player", { eventToParentWindow: true });
  5401. player.src = await execInUnsafeWindow(() => window.config.url);
  5402. },
  5403. "sp-flv.com": async () => {
  5404. const video = await queryDom("video");
  5405. await wait(() => !!video.currentSrc);
  5406. let url = video.currentSrc;
  5407. if (url.startsWith("blob:")) {
  5408. url = await execInUnsafeWindow(() => window.video_url);
  5409. if (url) {
  5410. video.src = "";
  5411. player = new KPlayer("#mplayer-media-wrapper", {
  5412. eventToParentWindow: true
  5413. });
  5414. player.src = url;
  5415. }
  5416. } else {
  5417. video.src = "";
  5418. player = new KPlayer("#mplayer-media-wrapper", {
  5419. eventToParentWindow: true
  5420. });
  5421. player.src = url;
  5422. }
  5423. },
  5424. "agefans-01": async () => {
  5425. let url = "";
  5426. while (!url) {
  5427. url = await execInUnsafeWindow(() => {
  5428. var _a;
  5429. return (_a = window.stray) == null ? void 0 : _a.url;
  5430. });
  5431. await sleep(100);
  5432. }
  5433. $("#artplayer").remove();
  5434. $("body").append('<div id="k-player-container"/>');
  5435. player = new KPlayer("#k-player-container", { eventToParentWindow: true });
  5436. player.src = url;
  5437. },
  5438. "agefans-02": async () => {
  5439. let url = "";
  5440. while (!url) {
  5441. url = await execInUnsafeWindow(() => {
  5442. var _a, _b;
  5443. return ((_b = (_a = window.art) == null ? void 0 : _a.hls) == null ? void 0 : _b.url) || window.Vurl;
  5444. });
  5445. await sleep(100);
  5446. }
  5447. await execInUnsafeWindow(() => window.art.destroy(false));
  5448. $("#loading").remove();
  5449. $("body").append('<div id="k-player-container"/>');
  5450. player = new KPlayer("#k-player-container", { eventToParentWindow: true });
  5451. player.src = url;
  5452. }
  5453. };
  5454.  
  5455. var css$7 = ".pro-ascepan-top #bkcl {\n display: none !important;\n}";
  5456. injectCss(css$7,{});
  5457.  
  5458. runtime.register({
  5459. domains: [
  5460. "pro.ascepan.top",
  5461. "danmu.yhdmjx.com",
  5462. "sp-flv.com",
  5463. "43.240.74.134",
  5464. "43.240.156.118"
  5465. ],
  5466. opts: [
  5467. {
  5468. test: () => window.location.href.includes("danmu.yhdmjx.com/m3u8.php"),
  5469. runInIframe: true,
  5470. run: parser$3["danmu.yhdmjx.com"]
  5471. },
  5472. {
  5473. test: () => window.location.href.includes("pro.ascepan.top/player"),
  5474. runInIframe: true,
  5475. run: parser$3["pro.ascepan.top"],
  5476. setup: () => $("body").addClass("pro-ascepan-top")
  5477. },
  5478. {
  5479. test: () => !!window.location.href.match(/sp-flv\.com.*url=/),
  5480. runInIframe: true,
  5481. run: parser$3["sp-flv.com"]
  5482. },
  5483. {
  5484. test: () => !!window.location.href.match(
  5485. /((43.240.74.134)|(43.240.156.118)).*vip.*url=/
  5486. ),
  5487. runInIframe: true,
  5488. run: parser$3["agefans-01"]
  5489. },
  5490. {
  5491. test: () => !!window.location.href.match(
  5492. /((43.240.74.134)|(43.240.156.118)).*m3u8.*url=/
  5493. ),
  5494. runInIframe: true,
  5495. run: parser$3["agefans-02"]
  5496. }
  5497. ],
  5498. search: {
  5499. getSearchName: () => {
  5500. return new Promise((resolve) => {
  5501. const fn = (e) => {
  5502. if (e.data.key === "getSearchName") {
  5503. resolve(e.data.name);
  5504. window.removeEventListener("message", fn);
  5505. }
  5506. };
  5507. window.addEventListener("message", fn);
  5508. parent.postMessage({ key: "getSearchName" }, "*");
  5509. });
  5510. },
  5511. getEpisode: () => {
  5512. return new Promise((resolve) => {
  5513. const fn = (e) => {
  5514. if (e.data.key === "getEpisode") {
  5515. resolve(e.data.name);
  5516. window.removeEventListener("message", fn);
  5517. }
  5518. };
  5519. window.addEventListener("message", fn);
  5520. parent.postMessage({ key: "getEpisode" }, "*");
  5521. });
  5522. }
  5523. }
  5524. });
  5525.  
  5526. var css$6 = ".agefans-wrapper .video_detail_episode a:visited {\n color: rgb(220, 53, 69) !important;\n}";
  5527. injectCss(css$6,{});
  5528.  
  5529. var css$5 = ".k-episode-anchor:visited {\n color: rgb(220, 53, 69) !important;\n}\n\n.k-his-table {\n width: 100%;\n line-height: 1.4;\n border-spacing: 0;\n border-collapse: separate;\n}\n.k-his-table th,\n.k-his-table td {\n padding: 6px 8px;\n}\n.k-his-table tr {\n transition: background 0.3s ease;\n}\n.k-his-table tr:hover {\n background: #f1f1f1;\n}\n.k-his-table a {\n text-decoration: none;\n transition: color 0.15s ease;\n}\n.k-his-table a:hover {\n color: var(--k-player-primary-color);\n}\n.k-his-table .k-btn {\n color: var(--k-player-primary-color);\n}";
  5530. injectCss(css$5,{});
  5531.  
  5532. var __defProp$1 = Object.defineProperty;
  5533. var __defProps$1 = Object.defineProperties;
  5534. var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
  5535. var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
  5536. var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
  5537. var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
  5538. var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
  5539. var __spreadValues$1 = (a, b) => {
  5540. for (var prop in b || (b = {}))
  5541. if (__hasOwnProp$1.call(b, prop))
  5542. __defNormalProp$1(a, prop, b[prop]);
  5543. if (__getOwnPropSymbols$1)
  5544. for (var prop of __getOwnPropSymbols$1(b)) {
  5545. if (__propIsEnum$1.call(b, prop))
  5546. __defNormalProp$1(a, prop, b[prop]);
  5547. }
  5548. return a;
  5549. };
  5550. var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
  5551. const his$1 = {
  5552. key: "k-history",
  5553. load() {
  5554. return local.getItem(this.key, []);
  5555. },
  5556. save(data) {
  5557. local.setItem(this.key, data.slice(0, 300));
  5558. },
  5559. log(info, time) {
  5560. let data = this.load();
  5561. data = data.filter((o) => o.id !== info.id);
  5562. data.unshift(__spreadProps$1(__spreadValues$1({}, info), { time }));
  5563. this.save(data);
  5564. },
  5565. remove(id) {
  5566. let data = this.load();
  5567. data = data.filter((o) => o.id !== id);
  5568. this.save(data);
  5569. }
  5570. };
  5571. const logHis$1 = throttle(his$1.log.bind(his$1), 1e3);
  5572. function renderHistroy$1() {
  5573. const data = his$1.load();
  5574. const $root = $(`
  5575. <table class="k-table k-his-table">
  5576. <colgroup>
  5577. <col>
  5578. <col style="width:80px">
  5579. <col style="width:60px">
  5580. <col style="width:60px">
  5581. </colgroup>
  5582. <thead>
  5583. <tr>
  5584. <th>\u6807\u9898</th>
  5585. <th>\u7AE0\u8282</th>
  5586. <th>\u65F6\u95F4</th>
  5587. <th></th>
  5588. </tr>
  5589. </thead>
  5590. <tbody></tbody>
  5591. </table>
  5592. `);
  5593. const content = data.map(
  5594. (info) => `<tr>
  5595. <td>
  5596. <a href="${info.url}">${info.animeName}</a>
  5597. </td>
  5598. <td>
  5599. <a href="${info.url}">${info.episodeName}</a>
  5600. </td>
  5601. <td>${parseTime(info.time)}</td>
  5602. <td>
  5603. <span class="k-btn delete-btn" data-id="${info.id}">\u5220\u9664</span>
  5604. </td>
  5605. </tr>`
  5606. ).join("");
  5607. const $content = $(content);
  5608. $content.find(".delete-btn").on("click", function() {
  5609. const id = $(this).attr("data-id");
  5610. his$1.remove(id);
  5611. $(this).closest("tr").remove();
  5612. });
  5613. $root.find("tbody").append($content);
  5614. modal({
  5615. title: "\u5386\u53F2\u8BB0\u5F55",
  5616. content: $root
  5617. });
  5618. }
  5619.  
  5620. function defineIframePlayer(config) {
  5621. const { iframeSelector, search } = config;
  5622. function createIframeReadyToChangeIframeSrc(url) {
  5623. const iframe = document.createElement("iframe");
  5624. iframe.className = "ready-to-change-iframe-src";
  5625. iframe.style.cssText = "position:fixed;left:0;top:0;z-index:9999;opacity:0;pointer-events:none;";
  5626. iframe.src = url;
  5627. document.body.appendChild(iframe);
  5628. }
  5629. function setActive(url) {
  5630. if (window.location.href !== url) {
  5631. window.history.pushState(window.history.state, "", url);
  5632. }
  5633. config.setActive(url);
  5634. createIframeReadyToChangeIframeSrc(url);
  5635. }
  5636. function createHistrory() {
  5637. if (config.history) {
  5638. config.history.creator(renderHistroy$1);
  5639. }
  5640. }
  5641. function isFocusInputElement() {
  5642. if (!document.activeElement)
  5643. return false;
  5644. return ["input", "textarea", "select"].includes(
  5645. document.activeElement.tagName.toLowerCase()
  5646. );
  5647. }
  5648. function runInTop() {
  5649. window.addEventListener("keydown", (e) => {
  5650. var _a;
  5651. if (isFocusInputElement())
  5652. return;
  5653. if ((_a = window.getSelection()) == null ? void 0 : _a.toString())
  5654. return;
  5655. if (e.ctrlKey || e.shiftKey || e.altKey || e.metaKey)
  5656. return;
  5657. $(iframeSelector)[0].blur();
  5658. $(iframeSelector)[0].focus();
  5659. if (e.key === " ")
  5660. e.preventDefault();
  5661. });
  5662. $(iframeSelector).attr({ allow: "autoplay; fullscreen" });
  5663. window.addEventListener("popstate", () => {
  5664. setActive(window.location.href);
  5665. });
  5666. config.getEpisodeList().each((_, el) => {
  5667. el.classList.add("k-episode-anchor");
  5668. el.addEventListener("click", (e) => {
  5669. e.preventDefault();
  5670. if ($(".ready-to-change-iframe-src").length)
  5671. return;
  5672. if (!el.href)
  5673. return;
  5674. setActive(el.href);
  5675. });
  5676. });
  5677. window.addEventListener("message", async (e) => {
  5678. var _a, _b, _c, _d;
  5679. if (!e.data.key)
  5680. return;
  5681. switch (e.data.key) {
  5682. case "getSearchName": {
  5683. (_a = e.source) == null ? void 0 : _a.postMessage(
  5684. {
  5685. key: "getSearchName",
  5686. name: await search.getSearchName()
  5687. },
  5688. { targetOrigin: "*" }
  5689. );
  5690. break;
  5691. }
  5692. case "getEpisode": {
  5693. (_b = e.source) == null ? void 0 : _b.postMessage(
  5694. { key: "getEpisode", name: await search.getEpisode() },
  5695. { targetOrigin: "*" }
  5696. );
  5697. break;
  5698. }
  5699. case "openLink": {
  5700. window.open(e.data.url);
  5701. break;
  5702. }
  5703. case "changeIframeSrc": {
  5704. const iframe = $(iframeSelector)[0];
  5705. (_c = iframe.contentWindow) == null ? void 0 : _c.location.replace(e.data.url);
  5706. document.title = e.data.title;
  5707. $(".ready-to-change-iframe-src").remove();
  5708. break;
  5709. }
  5710. case "prev":
  5711. case "next": {
  5712. if ($(".ready-to-change-iframe-src").length)
  5713. return;
  5714. const url = config.switchEpisode(e.data.key === "next");
  5715. if (url)
  5716. setActive(url);
  5717. break;
  5718. }
  5719. case "enterwidescreen": {
  5720. $("body").css("overflow", "hidden");
  5721. $("body").addClass("widescreen");
  5722. $(iframeSelector).css({
  5723. position: "fixed",
  5724. left: 0,
  5725. right: 0,
  5726. bottom: 0,
  5727. top: 0,
  5728. zIndex: 2147483648
  5729. });
  5730. break;
  5731. }
  5732. case "exitwidescreen": {
  5733. $("body").css("overflow", "");
  5734. $("body").removeClass("widescreen");
  5735. $(iframeSelector).removeAttr("style");
  5736. break;
  5737. }
  5738. case "timeupdate": {
  5739. if (config.history) {
  5740. logHis$1(
  5741. {
  5742. animeName: await search.getSearchName(),
  5743. episodeName: await search.getEpisode(),
  5744. id: await config.history.getId(),
  5745. url: window.location.href
  5746. },
  5747. e.data.video.currentTime
  5748. );
  5749. }
  5750. break;
  5751. }
  5752. }
  5753. (_d = config.onIframeMessage) == null ? void 0 : _d.call(config, e.data.key, e.data, e);
  5754. });
  5755. }
  5756. function runInIframe() {
  5757. top == null ? void 0 : top.postMessage(
  5758. {
  5759. key: "changeIframeSrc",
  5760. url: $(iframeSelector).attr("src"),
  5761. title: document.title
  5762. },
  5763. "*"
  5764. );
  5765. }
  5766. return { runInTop, runInIframe, createHistrory };
  5767. }
  5768.  
  5769. function getActive$5() {
  5770. return $(".van-grid-item.van-grid-item--active");
  5771. }
  5772. function switchPart$6(next) {
  5773. var _a;
  5774. const $active = getActive$5();
  5775. let $nextActive = $active[next ? "next" : "prev"]();
  5776. (_a = $nextActive[0]) == null ? void 0 : _a.click();
  5777. return null;
  5778. }
  5779. const iframePlayer$5 = defineIframePlayer({
  5780. iframeSelector: "#playerIFrame iframe",
  5781. getActive: getActive$5,
  5782. setActive: (href) => {
  5783. },
  5784. search: {
  5785. getSearchName: () => $(".detail-box h2").text(),
  5786. getEpisode: () => getActive$5().text()
  5787. },
  5788. getEpisodeList: () => $(".video-source-box .van-grid-item"),
  5789. switchEpisode: (next) => switchPart$6(next)
  5790. });
  5791. async function mobilePlayModule() {
  5792. await wait(() => getActive$5().length > 0);
  5793. iframePlayer$5.runInTop();
  5794. }
  5795.  
  5796. function calcSortDirection() {
  5797. var _a, _b, _c;
  5798. const $active = getActive$4();
  5799. const $prev = $active.prev();
  5800. const $next = $active.next();
  5801. const prevText = (_a = $prev.text().match(/\d+/)) == null ? void 0 : _a[0];
  5802. const nextText = (_b = $next.text().match(/\d+/)) == null ? void 0 : _b[0];
  5803. const activeText = (_c = $active.text().match(/\d+/)) == null ? void 0 : _c[0];
  5804. const prev = Number(prevText);
  5805. const current = Number(activeText);
  5806. const next = Number(nextText);
  5807. if (prevText) {
  5808. if (prev < current) {
  5809. local.setItem("sortDirection", "asc");
  5810. } else {
  5811. local.setItem("sortDirection", "desc");
  5812. }
  5813. } else if (nextText) {
  5814. if (next > current) {
  5815. local.setItem("sortDirection", "asc");
  5816. } else {
  5817. local.setItem("sortDirection", "desc");
  5818. }
  5819. } else {
  5820. local.setItem("sortDirection", "asc");
  5821. }
  5822. return local.getItem("sortDirection");
  5823. }
  5824. function getActiveTabIndex() {
  5825. const pathname = window.location.pathname;
  5826. const match = pathname.match(/play\/.*\/(\d+)\/(\d+)/);
  5827. if (match) {
  5828. const activeTab = match[1];
  5829. return Number(activeTab) - 1;
  5830. }
  5831. return null;
  5832. }
  5833. function getSortButon() {
  5834. return $('button:contains("\u66F4\u6539\u6392\u5E8F")');
  5835. }
  5836. function rememberSortDirection() {
  5837. const $btn = getSortButon();
  5838. $btn.on("click", () => {
  5839. setTimeout(() => {
  5840. calcSortDirection();
  5841. activeScrollIntoView();
  5842. }, 100);
  5843. });
  5844. }
  5845. function getSortDirection() {
  5846. return local.getItem("sortDirection", "asc");
  5847. }
  5848. function restoreSortDirection() {
  5849. const sortDirection = getSortDirection();
  5850. if (sortDirection === "desc") {
  5851. getSortButon().trigger("click");
  5852. }
  5853. }
  5854. function activeScrollIntoView() {
  5855. const $active = getActive$4();
  5856. function getScrollParent() {
  5857. let parent = $active.parent()[0];
  5858. while (parent && parent.tagName !== "BODY") {
  5859. const overflowY = getComputedStyle(parent).overflowY;
  5860. if (overflowY === "auto" || overflowY === "scroll") {
  5861. return parent;
  5862. }
  5863. parent = parent.parentElement;
  5864. }
  5865. return document.body;
  5866. }
  5867. const scrollEl = getScrollParent();
  5868. const scrollRect = scrollEl.getBoundingClientRect();
  5869. const activeRect = $active[0].getBoundingClientRect();
  5870. scrollEl.scrollTop += activeRect.top - scrollRect.top - 100;
  5871. }
  5872. function insertFocusBtn() {
  5873. const html = `
  5874. <button id="k-focus" type="button" class="btn btn-sm btn-outline-light btn-playlist-order">\u805A\u7126</button>
  5875. `;
  5876. $(html).on("click", async () => {
  5877. const idx = getActiveTabIndex();
  5878. if (idx != null) {
  5879. const $activeTab = $(".playlist-source-tab button[data-bs-toggle]").eq(
  5880. idx
  5881. );
  5882. if (!$activeTab.hasClass("active")) {
  5883. $activeTab.trigger("click");
  5884. await sleep(100);
  5885. }
  5886. }
  5887. activeScrollIntoView();
  5888. }).prependTo(".playlist-source-tab .float-end");
  5889. }
  5890. function getActive$4() {
  5891. return $(".video_detail_episode .video_detail_spisode_playing").parent();
  5892. }
  5893. function switchPart$5(next) {
  5894. var _a;
  5895. const $active = getActive$4();
  5896. const sortDirection = getSortDirection();
  5897. let $nextActive;
  5898. if (sortDirection === "asc")
  5899. $nextActive = $active[next ? "next" : "prev"]();
  5900. else
  5901. $nextActive = $active[next ? "prev" : "next"]();
  5902. return (_a = $nextActive.find("a")[0]) == null ? void 0 : _a.href;
  5903. }
  5904. const iframePlayer$4 = defineIframePlayer({
  5905. iframeSelector: ".video_play_wrapper iframe",
  5906. getActive: getActive$4,
  5907. setActive: (href) => {
  5908. $(".video_detail_episode a").each((_, el) => {
  5909. const $el = $(el);
  5910. if (el.href === href) {
  5911. $(".video_detail_spisode_playing").appendTo($el.parent());
  5912. }
  5913. });
  5914. $("#k-focus").trigger("click");
  5915. },
  5916. search: {
  5917. getSearchName: () => $(".video_detail_wrapper .cata_video_item .card-title").text(),
  5918. getEpisode: () => getActive$4().text()
  5919. },
  5920. getEpisodeList: () => $(".video_detail_episode a"),
  5921. switchEpisode: (next) => switchPart$5(next)
  5922. });
  5923. function playModule$1() {
  5924. $(".video_detail_episode a").each((_, el) => {
  5925. if (el.href)
  5926. el.href = el.href.replace("http://", "https://");
  5927. });
  5928. iframePlayer$4.runInTop();
  5929. rememberSortDirection();
  5930. restoreSortDirection();
  5931. insertFocusBtn();
  5932. activeScrollIntoView();
  5933. }
  5934. function playModuleInIframe() {
  5935. iframePlayer$4.runInIframe();
  5936. }
  5937.  
  5938. runtime.register({
  5939. domains: ["age.tv", "agemys", "agefans", "agedm"],
  5940. opts: [
  5941. {
  5942. test: "*",
  5943. run: () => {
  5944. $("body").addClass("agefans-wrapper");
  5945. }
  5946. },
  5947. { test: "/play", run: playModule$1 },
  5948. { test: "/play", run: playModuleInIframe, runInIframe: true },
  5949. { test: () => location.hash.includes("/play/"), run: mobilePlayModule }
  5950. ],
  5951. search: {
  5952. name: "agefans",
  5953. search: (name) => `https://www.agefans.com/search?query=${name}`,
  5954. getAnimeScope: () => window.location.href.match(/\/play\/(\d+)/)[1]
  5955. }
  5956. });
  5957.  
  5958. const favoriteKey = "favorite.v2";
  5959. function getFavorite(id) {
  5960. const favorites = local.getItem(favoriteKey, []);
  5961. if (id) {
  5962. return favorites.find((f) => f.id === id);
  5963. }
  5964. return favorites;
  5965. }
  5966. function setFavorite(favorite) {
  5967. const favorites = getFavorite();
  5968. const index = favorites.findIndex((f) => f.id === favorite.id);
  5969. if (index === -1) {
  5970. favorites.push(favorite);
  5971. } else {
  5972. favorites[index] = favorite;
  5973. }
  5974. local.setItem(favoriteKey, favorites);
  5975. }
  5976. function removeFavorite(id) {
  5977. const favorites = getFavorite();
  5978. const index = favorites.findIndex((f) => f.id === id);
  5979. if (index !== -1) {
  5980. favorites.splice(index, 1);
  5981. local.setItem(favoriteKey, favorites);
  5982. }
  5983. }
  5984. function renderFavoriteList() {
  5985. const favorites = getFavorite();
  5986. const $root = $(".div_right.baseblock");
  5987. const $content = $(`<div class="blockcontent">
  5988. <ul id="anime_update"></ul>
  5989. </div>`);
  5990. $root.prepend(`<div class="blocktitle">\u8BA2\u9605</div>`, $content);
  5991. favorites.forEach((favorite) => {
  5992. const update = $(
  5993. `.mod .one_new_anime a[href$='/${favorite.id}.html'].one_new_anime_ji`
  5994. ).text() || $(
  5995. `.div_left a[href$='/${favorite.id}.html'] > img + .anime_icon1_name1`
  5996. ).text();
  5997. if (update) {
  5998. favorite.updateDesc = update;
  5999. updateFavoriteField(favorite.id, "updateDesc", update);
  6000. }
  6001. });
  6002. const daysInChinese = ["\u5468\u65E5", "\u5468\u4E00", "\u5468\u4E8C", "\u5468\u4E09", "\u5468\u56DB", "\u5468\u4E94", "\u5468\u516D"];
  6003. let groups = Array.from(
  6004. { length: 7 },
  6005. (_, idx) => ({
  6006. day: daysInChinese[idx],
  6007. list: favorites.filter(
  6008. (item) => new Date(item.lastUpdate).getDay() === idx
  6009. )
  6010. })
  6011. );
  6012. const day = new Date().getDay();
  6013. groups = [...groups.slice(day), ...groups.slice(0, day)];
  6014. groups.filter((o) => o.list.length > 0).forEach(({ day: day2, list }, index) => {
  6015. const $ul = $(`<ul id="new_anime_page"></ul>`);
  6016. list.forEach((favorite) => {
  6017. const url = new URL(favorite.current.url, location.origin);
  6018. url.searchParams.set("jumpToLast", "1");
  6019. const lastUrl = url.toString();
  6020. $ul.append(
  6021. `
  6022. <li class="one_new_anime" style="display:flex; justify-content:space-between;">
  6023. <a
  6024. class="one_new_anime_name"
  6025. href="${favorite.current.url}"
  6026. title="${favorite.title}"
  6027. >${favorite.title}</a>
  6028. <a
  6029. class="one_new_anime_ji"
  6030. style="flex-shrink:0;margin:0"
  6031. href="${favorite.current.url}"
  6032. title="\u8DF3\u8F6C\u5230${favorite.current.name}\u7684\u64AD\u653E\u9875\u9762"
  6033. >${favorite.current.name}</a>
  6034. <span>&nbsp;/&nbsp;</span>
  6035. <a
  6036. class="one_new_anime_ji"
  6037. style="flex-shrink:0;"
  6038. href="${lastUrl}"
  6039. title="\u8DF3\u8F6C\u5230\u6700\u540E\u4E00\u96C6\u64AD\u653E\u9875\u9762"
  6040. >${favorite.updateDesc || "-"}</a>
  6041. </li>`
  6042. );
  6043. });
  6044. $content.find("#anime_update").append(
  6045. `<div style="margin-top:${index !== 0 ? 8 : 0}px;">${day2}</div>`,
  6046. $ul
  6047. );
  6048. });
  6049. if (!favorites.length) {
  6050. $content.find("#anime_update").append("<div>\u8BA2\u9605\u559C\u6B22\u7684\u756A\u5267\uFF0C\u5728\u64AD\u653E\u9875\u9762\u6807\u9898\u53F3\u4FA7\u6DFB\u52A0\u8BA2\u9605</div>");
  6051. }
  6052. }
  6053. function renderFavoriteBtn() {
  6054. const $btn = $(`<a href="javascript:void(0)" style="float:right;">\u8BA2\u9605</a>`);
  6055. const id = getCurrentPageFavoriteId();
  6056. const updateLabel = () => {
  6057. $btn.text(getFavorite(id) ? "\u5DF2\u8BA2\u9605" : "\u8BA2\u9605");
  6058. };
  6059. $btn.on("click", () => {
  6060. if (getFavorite(id)) {
  6061. removeFavorite(id);
  6062. } else {
  6063. addCurrentPageFavorite();
  6064. }
  6065. updateLabel();
  6066. });
  6067. updateLabel();
  6068. $("#detailname").append($btn);
  6069. }
  6070. function updateFavoriteField(id, field, value) {
  6071. const favorite = getFavorite(id);
  6072. if (!favorite)
  6073. return;
  6074. favorite[field] = value;
  6075. setFavorite(favorite);
  6076. }
  6077. function getCurrentPageFavoriteId() {
  6078. return location.pathname.match(/\/(\d+)-/)[1];
  6079. }
  6080. function addCurrentPageFavorite() {
  6081. setFavorite(createCurrentPageFavorite());
  6082. }
  6083. function createCurrentPageFavorite() {
  6084. const id = getCurrentPageFavoriteId();
  6085. const name = $(".active-play").text();
  6086. const url = location.pathname;
  6087. const title = $("#detailname a:nth-child(1)").text();
  6088. const lastUpdate = $('.play_imform_kv .play_imform_tag:contains("\u66F4\u65B0\u65F6\u95F4")').next(".play_imform_val").text();
  6089. const updateDesc = $('.play_imform_kv .play_imform_tag:contains("\u64AD\u653E\u72B6\u6001")').next(".play_imform_val").text();
  6090. return { id, title, updateDesc, lastUpdate, current: { name, url } };
  6091. }
  6092. function updateCurrentPageFavorite() {
  6093. const id = getCurrentPageFavoriteId();
  6094. if (!getFavorite(id))
  6095. return;
  6096. setFavorite(createCurrentPageFavorite());
  6097. }
  6098.  
  6099. function getActive$3() {
  6100. return $(".active-play");
  6101. }
  6102. function switchPart$4(next) {
  6103. return $(".active-play").parent()[next ? "next" : "prev"]().find("a")[0].href;
  6104. }
  6105. function runInTop$3() {
  6106. parseURLJumpParams();
  6107. iframePlayer$3.runInTop();
  6108. renderFavoriteBtn();
  6109. }
  6110. function parseURLJumpParams() {
  6111. const url = new URL(window.location.href);
  6112. const jumpToLast = url.searchParams.get("jumpToLast");
  6113. if (jumpToLast) {
  6114. window.location.replace($(".movurl:visible a").last().attr("href"));
  6115. }
  6116. }
  6117. const iframePlayer$3 = defineIframePlayer({
  6118. iframeSelector: "#playleft iframe",
  6119. getActive: () => $(".active-play"),
  6120. setActive: (href) => {
  6121. $(".movurl a").each((_, el) => {
  6122. if (el.href === href) {
  6123. el.classList.add("active-play");
  6124. } else {
  6125. el.classList.remove("active-play");
  6126. }
  6127. });
  6128. },
  6129. search: {
  6130. getSearchName: () => $("#detailname a:nth-child(1)").text(),
  6131. getEpisode: () => getActive$3().text()
  6132. },
  6133. getEpisodeList: () => $(".movurl a"),
  6134. switchEpisode: (next) => switchPart$4(next),
  6135. history: {
  6136. creator: (renderHistory) => {
  6137. const $btn = $(`<a class="nav_button" href="javascript:void(0)">\u5386\u53F2</a>`);
  6138. $btn.on("click", renderHistory);
  6139. $btn.insertBefore("#top_search_from");
  6140. },
  6141. getId: () => location.pathname.match(/\/(\d+)-/)[1]
  6142. },
  6143. onIframeMessage: (key, data) => {
  6144. if (key === "canplay") {
  6145. const video = data.video;
  6146. const width = $("#ageframediv").width();
  6147. if (width)
  6148. $("#ageframediv").height(video.height / video.width * width);
  6149. updateCurrentPageFavorite();
  6150. }
  6151. }
  6152. });
  6153.  
  6154. runtime.register({
  6155. domains: [".ntdm8."],
  6156. opts: [
  6157. { test: "*", run: iframePlayer$3.createHistrory },
  6158. { test: /^\/$/, run: renderFavoriteList },
  6159. { test: "/play", run: runInTop$3 },
  6160. { test: "/play", run: iframePlayer$3.runInIframe, runInIframe: true }
  6161. ],
  6162. search: {
  6163. name: "NT\u52A8\u6F2B",
  6164. search: (name) => `http://www.ntdm8.com/search/-------------.html?wd=${name}&page=1`,
  6165. getAnimeScope: () => window.location.pathname.match(/\/play\/(\d+)-/)[1]
  6166. }
  6167. });
  6168.  
  6169. var css$4 = ".bimi-wrapper .play-full,\n.bimi-wrapper #bkcl,\n.bimi-wrapper marquee {\n display: none !important;\n}\n.bimi-wrapper .bimi-his-table {\n width: 100%;\n line-height: 1.4;\n border-spacing: 0;\n border-collapse: separate;\n}\n.bimi-wrapper .bimi-his-table th,\n.bimi-wrapper .bimi-his-table td {\n padding: 4px 8px;\n transition: background 0.3s ease;\n}\n.bimi-wrapper .bimi-his-table tr:hover td {\n background: #f1f1f1;\n}";
  6170. injectCss(css$4,{});
  6171.  
  6172. var __defProp = Object.defineProperty;
  6173. var __defProps = Object.defineProperties;
  6174. var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
  6175. var __getOwnPropSymbols = Object.getOwnPropertySymbols;
  6176. var __hasOwnProp = Object.prototype.hasOwnProperty;
  6177. var __propIsEnum = Object.prototype.propertyIsEnumerable;
  6178. var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
  6179. var __spreadValues = (a, b) => {
  6180. for (var prop in b || (b = {}))
  6181. if (__hasOwnProp.call(b, prop))
  6182. __defNormalProp(a, prop, b[prop]);
  6183. if (__getOwnPropSymbols)
  6184. for (var prop of __getOwnPropSymbols(b)) {
  6185. if (__propIsEnum.call(b, prop))
  6186. __defNormalProp(a, prop, b[prop]);
  6187. }
  6188. return a;
  6189. };
  6190. var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
  6191. const his = {
  6192. key: "bangumi-history",
  6193. load() {
  6194. return local.getItem(this.key, []);
  6195. },
  6196. save(data) {
  6197. local.setItem(this.key, data.slice(0, 100));
  6198. },
  6199. log(info, time) {
  6200. let data = local.getItem(this.key, []);
  6201. data = data.filter((o) => o.id !== info.id);
  6202. data.unshift(__spreadProps(__spreadValues({}, info), { time }));
  6203. this.save(data);
  6204. }
  6205. };
  6206. const logHis = throttle(his.log.bind(his), 1e3);
  6207. function renderHistroy() {
  6208. const data = his.load();
  6209. const content = data.map(
  6210. (info) => `<tr>
  6211. <td>
  6212. <a href="${info.url}">${info.animeName}</a>
  6213. </td>
  6214. <td>
  6215. <a href="${info.url}">${info.episodeName}</a>
  6216. </td>
  6217. <td>${parseTime(info.time)}</td>
  6218. </tr>`
  6219. ).join("");
  6220. modal({
  6221. title: "\u5386\u53F2\u8BB0\u5F55",
  6222. content: `
  6223. <table class="k-table bimi-his-table">
  6224. <thead>
  6225. <tr>
  6226. <th>\u6807\u9898</th>
  6227. <th>\u7AE0\u8282</th>
  6228. <th style="width:100px">\u65F6\u95F4</th>
  6229. </tr>
  6230. </thead>
  6231. <tbody>
  6232. ${content}
  6233. </tbody>
  6234. </table>
  6235. `
  6236. });
  6237. }
  6238. function createButton() {
  6239. const $btn = $('<li class="item"><a>\u5386\u53F2</a></li>');
  6240. $btn.on("click", renderHistroy);
  6241. $(".header-top__nav ul").append($btn);
  6242. }
  6243. function historyModule$1() {
  6244. createButton();
  6245. }
  6246.  
  6247. function replacePlayer$1() {
  6248. new KPlayer("#player", {
  6249. video: $("video")[0],
  6250. eventToParentWindow: true
  6251. });
  6252. }
  6253. function switchPart$3(next) {
  6254. var _a;
  6255. (_a = $(
  6256. `.player-info .play-qqun .${next ? "next" : "pre"}:not(.btns_disad)`
  6257. )[0]) == null ? void 0 : _a.click();
  6258. }
  6259. function getPlayInfo() {
  6260. const animeName = $(".v_path a.current").text();
  6261. const episodeName = (() => {
  6262. let name = "";
  6263. let pre = $(".player-info .play-qqun .pre").attr("href");
  6264. let next = $(".player-info .play-qqun .next").attr("href");
  6265. if (pre) {
  6266. name = $(`.player_list a[href='${pre}']`).parent().next().find("a").text();
  6267. } else if (next) {
  6268. name = $(`.player_list a[href='${next}']`).parent().prev().find("a").text();
  6269. } else {
  6270. name = $(`.player_list a[href='${location.pathname}']`).text();
  6271. }
  6272. return name;
  6273. })();
  6274. const url = location.pathname;
  6275. const id = location.pathname.match(new RegExp("\\/(?<id>\\d+)\\/play")).groups.id;
  6276. return { id, url, animeName, episodeName };
  6277. }
  6278. async function playModule() {
  6279. var _a;
  6280. $("#bkcl").remove();
  6281. const info = getPlayInfo();
  6282. const iframe = await queryDom(
  6283. `#playleft iframe[src*='url=']`
  6284. );
  6285. window.addEventListener("message", (e) => {
  6286. var _a2, _b, _c, _d;
  6287. if (!((_a2 = e.data) == null ? void 0 : _a2.key))
  6288. return;
  6289. const key = e.data.key;
  6290. const video = e.data.video;
  6291. if (key === "initDone") {
  6292. (_b = iframe.contentWindow) == null ? void 0 : _b.postMessage({ key: "initDone" }, "*");
  6293. }
  6294. if (key === "prev")
  6295. switchPart$3(false);
  6296. if (key === "next")
  6297. switchPart$3(true);
  6298. if (key === "enterwidescreen") {
  6299. $("body").css("overflow", "hidden");
  6300. $(iframe).css({
  6301. position: "fixed",
  6302. left: 0,
  6303. right: 0,
  6304. bottom: 0,
  6305. top: 0,
  6306. zIndex: 99999
  6307. });
  6308. }
  6309. if (key === "exitwidescreen") {
  6310. $("body").css("overflow", "");
  6311. $(iframe).removeAttr("style");
  6312. }
  6313. if (key === "getSearchName") {
  6314. (_c = iframe.contentWindow) == null ? void 0 : _c.postMessage(
  6315. { key: "getSearchName", name: info.animeName },
  6316. "*"
  6317. );
  6318. }
  6319. if (key === "getEpisode") {
  6320. (_d = iframe.contentWindow) == null ? void 0 : _d.postMessage(
  6321. { key: "getEpisode", name: info.episodeName },
  6322. "*"
  6323. );
  6324. }
  6325. if (key === "openLink") {
  6326. window.open(e.data.url);
  6327. }
  6328. if (key === "canplay") {
  6329. const height = $("#video").width() / video.width * video.height;
  6330. $("#video").height(height);
  6331. }
  6332. if (key === "timeupdate") {
  6333. logHis(info, video.currentTime);
  6334. }
  6335. });
  6336. (_a = iframe.contentWindow) == null ? void 0 : _a.postMessage({ key: "initDone" }, "*");
  6337. iframe.focus();
  6338. window.addEventListener("keydown", (e) => {
  6339. if (document.activeElement !== document.body)
  6340. return;
  6341. iframe.focus();
  6342. if (e.key === " ")
  6343. e.preventDefault();
  6344. });
  6345. }
  6346. function playInIframeModule() {
  6347. const fn = (e) => {
  6348. var _a;
  6349. if (!((_a = e.data) == null ? void 0 : _a.key))
  6350. return;
  6351. if (e.data.key === "initDone") {
  6352. replacePlayer$1();
  6353. window.removeEventListener("message", fn);
  6354. }
  6355. };
  6356. window.addEventListener("message", fn);
  6357. parent.postMessage({ key: "initDone" }, "*");
  6358. }
  6359.  
  6360. runtime.register({
  6361. domains: [/bimiacg\d+.net/],
  6362. opts: [
  6363. {
  6364. test: "*",
  6365. setup: () => $("body").addClass("bimi-wrapper"),
  6366. run: historyModule$1
  6367. },
  6368. { test: ["/play/"], run: playModule },
  6369. { test: "*", runInIframe: true, run: playInIframeModule }
  6370. ],
  6371. search: {
  6372. name: "BIMI\u52A8\u6F2B",
  6373. search: (name) => `http://www.bimiacg10.net/vod/search/wd/${name}/`,
  6374. getSearchName: () => {
  6375. return new Promise((resolve) => {
  6376. const fn = (e) => {
  6377. if (e.data.key === "getSearchName") {
  6378. resolve(e.data.name);
  6379. window.removeEventListener("message", fn);
  6380. }
  6381. };
  6382. window.addEventListener("message", fn);
  6383. parent.postMessage({ key: "getSearchName" }, "*");
  6384. });
  6385. },
  6386. getEpisode: () => {
  6387. return new Promise((resolve) => {
  6388. const fn = (e) => {
  6389. if (e.data.key === "getEpisode") {
  6390. resolve(e.data.name);
  6391. window.removeEventListener("message", fn);
  6392. }
  6393. };
  6394. window.addEventListener("message", fn);
  6395. parent.postMessage({ key: "getEpisode" }, "*");
  6396. });
  6397. },
  6398. getAnimeScope: () => {
  6399. var _a;
  6400. return ((_a = window.location.href.match(/\/(\d+)\/play/)) == null ? void 0 : _a[1]) || "";
  6401. }
  6402. }
  6403. });
  6404.  
  6405. function getActive$2() {
  6406. return $(".module-play-list .module-play-list-link.active");
  6407. }
  6408. function switchPart$2(next) {
  6409. var _a;
  6410. return (_a = getActive$2()[next ? "next" : "prev"]().get(0)) == null ? void 0 : _a.href;
  6411. }
  6412. function runInTop$2() {
  6413. $("body").addClass("mutefun");
  6414. iframePlayer$2.runInTop();
  6415. }
  6416. const iframePlayer$2 = defineIframePlayer({
  6417. iframeSelector: "#playleft iframe",
  6418. getActive: getActive$2,
  6419. setActive: (href) => {
  6420. $(".module-play-list-link").each((_, el) => {
  6421. if (el.href === href) {
  6422. el.classList.add("active");
  6423. $(".playon").insertAfter($(el).find("span"));
  6424. } else {
  6425. el.classList.remove("active");
  6426. }
  6427. });
  6428. },
  6429. search: {
  6430. getSearchName: () => $(".module-info-heading h1").text(),
  6431. getEpisode: () => getActive$2().text()
  6432. },
  6433. getEpisodeList: () => $(".module-play-list-link"),
  6434. switchEpisode: (next) => switchPart$2(next)
  6435. });
  6436. async function parser$2() {
  6437. const video = await queryDom("video");
  6438. await wait(() => !!video.currentSrc);
  6439. let url = video.currentSrc;
  6440. url = await execInUnsafeWindow(() => window.config.url);
  6441. video.src = "";
  6442. const player = new KPlayer("#player", {
  6443. eventToParentWindow: true
  6444. });
  6445. player.src = url;
  6446. $("#ADplayer,#ADtip").remove();
  6447. }
  6448.  
  6449. var css$3 = ".mutefun.widescreen .header,\n.mutefun.widescreen .module-player-side,\n.mutefun.widescreen .fixedGroup {\n visibility: hidden;\n pointer-events: none;\n}";
  6450. injectCss(css$3,{});
  6451.  
  6452. runtime.register({
  6453. domains: [".mutedm.", ".mutean.", ".mute01."],
  6454. opts: [
  6455. { test: "/vodplay", run: runInTop$2 },
  6456. { test: "/vodplay", run: iframePlayer$2.runInIframe, runInIframe: true },
  6457. {
  6458. test: ["/addons/dp/player/dp.php"],
  6459. run: parser$2,
  6460. runInIframe: true
  6461. }
  6462. ],
  6463. search: {
  6464. name: "MuteFun",
  6465. search: (name) => `https://www.mutean.com/vodsearch/${name}-------------.html`,
  6466. getSearchName: () => {
  6467. return new Promise((resolve) => {
  6468. const fn = (e) => {
  6469. if (e.data.key === "getSearchName") {
  6470. resolve(e.data.name);
  6471. window.removeEventListener("message", fn);
  6472. }
  6473. };
  6474. window.addEventListener("message", fn);
  6475. parent.postMessage({ key: "getSearchName" }, "*");
  6476. });
  6477. },
  6478. getEpisode: () => {
  6479. return new Promise((resolve) => {
  6480. const fn = (e) => {
  6481. if (e.data.key === "getEpisode") {
  6482. resolve(e.data.name);
  6483. window.removeEventListener("message", fn);
  6484. }
  6485. };
  6486. window.addEventListener("message", fn);
  6487. parent.postMessage({ key: "getEpisode" }, "*");
  6488. });
  6489. },
  6490. getAnimeScope: () => {
  6491. var _a;
  6492. return ((_a = window.location.href.match(/\/vodplay\/(\d+)-/)) == null ? void 0 : _a[1]) || "";
  6493. }
  6494. }
  6495. });
  6496.  
  6497. function getActive$1() {
  6498. return $(".anthology-list-play li.on > a");
  6499. }
  6500. function switchPart$1(next) {
  6501. var _a;
  6502. return (_a = getActive$1().parent()[next ? "next" : "prev"]().find("a")[0]) == null ? void 0 : _a.href;
  6503. }
  6504. function runInTop$1() {
  6505. $("body").addClass("cycanime");
  6506. iframePlayer$1.runInTop();
  6507. }
  6508. const iframePlayer$1 = defineIframePlayer({
  6509. iframeSelector: "#playleft iframe",
  6510. getActive: getActive$1,
  6511. setActive: (href) => {
  6512. $(".anthology-list-play li a").each((_, el) => {
  6513. if (el.href === href) {
  6514. el.parentElement.classList.add("ecnav-dt", "on");
  6515. $(".play-on").insertAfter($(el).find("span"));
  6516. } else {
  6517. el.parentElement.classList.remove("ecnav-dt", "on");
  6518. }
  6519. });
  6520. },
  6521. search: {
  6522. getSearchName: () => $(".player-title-link").text(),
  6523. getEpisode: () => getActive$1().text()
  6524. },
  6525. getEpisodeList: () => $(".anthology-list-play li a"),
  6526. switchEpisode: (next) => switchPart$1(next)
  6527. });
  6528. async function parser$1() {
  6529. const video = await queryDom("video");
  6530. await wait(() => !!video.currentSrc);
  6531. let url = video.currentSrc;
  6532. video.src = "";
  6533. const player = new KPlayer("#mui-player", {
  6534. eventToParentWindow: true
  6535. });
  6536. player.src = url;
  6537. }
  6538.  
  6539. var css$2 = ".cycanime.widescreen .header_nav0,\n.cycanime.widescreen .top-back.hoa,\n.cycanime.widescreen .fixedGroup {\n visibility: hidden;\n pointer-events: none;\n}";
  6540. injectCss(css$2,{});
  6541.  
  6542. runtime.register({
  6543. domains: [".cycanime.", ".cyc-anime.", ".cycani.", ".ciyuancheng."],
  6544. opts: [
  6545. { test: "/watch", run: runInTop$1 },
  6546. { test: "/watch", run: iframePlayer$1.runInIframe, runInIframe: true },
  6547. {
  6548. test: () => location.hostname.includes("player.cycanime"),
  6549. run: parser$1,
  6550. runInIframe: true
  6551. }
  6552. ],
  6553. search: {
  6554. name: "\u6B21\u5143\u57CE",
  6555. search: (name) => `https://www.cycani.org/search.html?wd=${name}`,
  6556. getSearchName: () => {
  6557. return new Promise((resolve) => {
  6558. const fn = (e) => {
  6559. if (e.data.key === "getSearchName") {
  6560. resolve(e.data.name);
  6561. window.removeEventListener("message", fn);
  6562. }
  6563. };
  6564. window.addEventListener("message", fn);
  6565. parent.postMessage({ key: "getSearchName" }, "*");
  6566. });
  6567. },
  6568. getEpisode: () => {
  6569. return new Promise((resolve) => {
  6570. const fn = (e) => {
  6571. if (e.data.key === "getEpisode") {
  6572. resolve(e.data.name);
  6573. window.removeEventListener("message", fn);
  6574. }
  6575. };
  6576. window.addEventListener("message", fn);
  6577. parent.postMessage({ key: "getEpisode" }, "*");
  6578. });
  6579. },
  6580. getAnimeScope: () => {
  6581. var _a;
  6582. return ((_a = window.location.href.match(/\/watch\/(\d+)\//)) == null ? void 0 : _a[1]) || "";
  6583. }
  6584. }
  6585. });
  6586.  
  6587. function getActive() {
  6588. return $(".anthology-list-play li.on > a");
  6589. }
  6590. function switchPart(next) {
  6591. var _a;
  6592. return (_a = getActive().parent()[next ? "next" : "prev"]().find("a")[0]) == null ? void 0 : _a.href;
  6593. }
  6594. function runInTop() {
  6595. $("body").addClass("xfani");
  6596. $(".player-news").remove();
  6597. iframePlayer.runInTop();
  6598. }
  6599. const iframePlayer = defineIframePlayer({
  6600. iframeSelector: "#playleft iframe",
  6601. getActive,
  6602. setActive: (href) => {
  6603. $(".anthology-list-play li a").each((_, el) => {
  6604. if (el.href === href) {
  6605. el.parentElement.classList.add("ecnav-dt", "on");
  6606. $(".play-on").insertAfter($(el).find("span"));
  6607. } else {
  6608. el.parentElement.classList.remove("ecnav-dt", "on");
  6609. }
  6610. });
  6611. },
  6612. search: {
  6613. getSearchName: () => $(".player-title-link").text(),
  6614. getEpisode: () => getActive().text()
  6615. },
  6616. getEpisodeList: () => $(".anthology-list-play li a"),
  6617. switchEpisode: (next) => switchPart(next)
  6618. });
  6619. async function parser() {
  6620. const video = await queryDom("video");
  6621. await wait(() => !!video.currentSrc);
  6622. let url = video.currentSrc;
  6623. video.src = "";
  6624. const player = new KPlayer("#player", {
  6625. eventToParentWindow: true
  6626. });
  6627. player.src = url;
  6628. $("#loading").remove();
  6629. await execInUnsafeWindow(() => {
  6630. PlayEr.void.destroy();
  6631. });
  6632. }
  6633.  
  6634. var css$1 = ".xfani.widescreen .header_nav0,\n.xfani.widescreen .top-back.hoa,\n.xfani.widescreen .fixedGroup {\n visibility: hidden;\n pointer-events: none;\n}";
  6635. injectCss(css$1,{});
  6636.  
  6637. runtime.register({
  6638. domains: [".xifanacg.", "player.moedot"],
  6639. opts: [
  6640. { test: "/watch", run: runInTop },
  6641. { test: "/watch", run: iframePlayer.runInIframe, runInIframe: true },
  6642. {
  6643. test: () => location.hostname.includes("player.moedot"),
  6644. run: parser,
  6645. runInIframe: true
  6646. }
  6647. ],
  6648. search: {
  6649. name: "\u7A00\u996D\u52A8\u6F2B",
  6650. search: (name) => `https://dm.xifanacg.com/search.html?wd=${name}`,
  6651. getSearchName: () => {
  6652. return new Promise((resolve) => {
  6653. const fn = (e) => {
  6654. if (e.data.key === "getSearchName") {
  6655. resolve(e.data.name);
  6656. window.removeEventListener("message", fn);
  6657. }
  6658. };
  6659. window.addEventListener("message", fn);
  6660. parent.postMessage({ key: "getSearchName" }, "*");
  6661. });
  6662. },
  6663. getEpisode: () => {
  6664. return new Promise((resolve) => {
  6665. const fn = (e) => {
  6666. if (e.data.key === "getEpisode") {
  6667. resolve(e.data.name);
  6668. window.removeEventListener("message", fn);
  6669. }
  6670. };
  6671. window.addEventListener("message", fn);
  6672. parent.postMessage({ key: "getEpisode" }, "*");
  6673. });
  6674. },
  6675. getAnimeScope: () => {
  6676. var _a;
  6677. return ((_a = window.location.href.match(/\/watch\/(\d+)\//)) == null ? void 0 : _a[1]) || "";
  6678. }
  6679. }
  6680. });
  6681.  
  6682. function main() {
  6683. replacePlayer();
  6684. }
  6685. function getUrlId(url) {
  6686. const key = "k-player-standalone-url-store";
  6687. const store = local.getItem(key, {});
  6688. let id = store[url];
  6689. if (!id) {
  6690. id = Math.random().toString(36).slice(2);
  6691. store[url] = id;
  6692. local.setItem(key, store);
  6693. }
  6694. return id;
  6695. }
  6696. function replacePlayer() {
  6697. const player = new KPlayer("#player");
  6698. player.message.info(
  6699. "\u8BF7\u4F7F\u7528Ctrl+V\u7C98\u8D34\u89C6\u9891\u5730\u5740\uFF0C\u6216\u8005\u62D6\u62FD\u89C6\u9891\u6587\u4EF6/\u94FE\u63A5\u5230\u9875\u9762",
  6700. 6e4
  6701. );
  6702. player.on("loadstart", (e) => {
  6703. player.message.destroy();
  6704. const id = getUrlId(player.src);
  6705. history.replaceState(null, "", `#${id}`);
  6706. });
  6707. window.addEventListener("paste", (e) => {
  6708. var _a;
  6709. const text = (_a = e.clipboardData) == null ? void 0 : _a.getData("text");
  6710. if (text && isUrl(text)) {
  6711. player.src = text;
  6712. }
  6713. });
  6714. }
  6715.  
  6716. runtime.register({
  6717. domains: ["127.0.0.1", "ironkinoko.github.io"],
  6718. opts: [{ test: "*", run: main }],
  6719. search: {
  6720. getEpisode: () => "",
  6721. getSearchName: () => "",
  6722. getAnimeScope: () => "standalone"
  6723. }
  6724. });
  6725.  
  6726. function historyModule() {
  6727. const $btn = $(
  6728. `<li class="menu-item">
  6729. <a href="javascript:void(0)" >\u6B77\u53F2</a>
  6730. </li>`
  6731. ).on("click", renderHistroy$1);
  6732. $(".menu.nav-menu").append($btn);
  6733. }
  6734.  
  6735. var css = ".anime1 {\n overflow: visible;\n}\n.anime1 * {\n font-family: system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\", sans-serif;\n}\n@media screen and (min-width: 769px) {\n .anime1 .single-page .content-area {\n width: 100%;\n float: none;\n }\n .anime1 .single-page .widget-area {\n margin: 0 auto;\n float: none;\n }\n .anime1 .single-page .widget-area .search-form {\n text-align: center;\n }\n .anime1 .single-page .vjscontainer {\n width: 100%;\n height: auto;\n max-width: unset;\n }\n .anime1 .single-page .vjscontainer .video-js {\n pointer-events: none;\n }\n}\n.anime1 .category .vjscontainer {\n cursor: pointer;\n}\n.anime1 .category .vjscontainer .video-js {\n pointer-events: none;\n}\n.anime1 #k-player-wrapper button,\n.anime1 #k-player-wrapper input[type=text],\n.anime1 #k-player-wrapper input[type=checkbox],\n.anime1 #k-player-wrapper select,\n.anime1 #k-player-wrapper textarea,\n.anime1 #k-player-wrapper label,\n.anime1 .k-modal button,\n.anime1 .k-modal input[type=text],\n.anime1 .k-modal input[type=checkbox],\n.anime1 .k-modal select,\n.anime1 .k-modal textarea,\n.anime1 .k-modal label {\n color: inherit;\n font-size: inherit;\n line-height: inherit;\n font-weight: 400;\n word-wrap: break-word;\n}\n.anime1 #k-player-wrapper input[type=text],\n.anime1 #k-player-wrapper select,\n.anime1 .k-modal input[type=text],\n.anime1 .k-modal select {\n color: #232323;\n padding: unset;\n background: white;\n}\n.anime1 #k-player-wrapper table,\n.anime1 .k-modal table {\n border: none;\n}\n.anime1 #k-player-wrapper th,\n.anime1 #k-player-wrapper td,\n.anime1 .k-modal th,\n.anime1 .k-modal td {\n background: white;\n}\n.anime1 #k-player-wrapper .k-input,\n.anime1 #k-player-wrapper .k-select,\n.anime1 .k-modal .k-input,\n.anime1 .k-modal .k-select {\n background: white;\n border: 1px solid #f1f1f1;\n color: black;\n outline: 0;\n border-radius: 2px;\n transition: all 0.15s ease;\n}\n.anime1 #k-player-wrapper .k-input:focus, .anime1 #k-player-wrapper .k-input:hover,\n.anime1 #k-player-wrapper .k-select:focus,\n.anime1 #k-player-wrapper .k-select:hover,\n.anime1 .k-modal .k-input:focus,\n.anime1 .k-modal .k-input:hover,\n.anime1 .k-modal .k-select:focus,\n.anime1 .k-modal .k-select:hover {\n border-color: var(--k-player-primary-color);\n}\n.anime1 #k-player-wrapper .k-input::placeholder,\n.anime1 #k-player-wrapper .k-select::placeholder,\n.anime1 .k-modal .k-input::placeholder,\n.anime1 .k-modal .k-select::placeholder {\n color: #999;\n}";
  6736. injectCss(css,{});
  6737.  
  6738. async function fetchVideoLinks(params) {
  6739. const { apireq, tserver, vid } = params;
  6740. const res = await $.ajax({
  6741. xhrFields: {
  6742. withCredentials: true
  6743. },
  6744. type: "POST",
  6745. url: "//v.anime1.me/api",
  6746. contentType: "application/x-www-form-urlencoded",
  6747. data: "d=" + apireq
  6748. });
  6749. const src = res.s[0].src;
  6750. const thumbnails = `https://${tserver}.anime1.me/${vid}/thumbnails.vtt`;
  6751. return { src, thumbnails };
  6752. }
  6753. function enhanceSinglePage() {
  6754. $("body").addClass("single-page");
  6755. }
  6756. async function runInSingle() {
  6757. enhanceSinglePage();
  6758. const $root = $(".video-js");
  6759. const vlinks = await fetchVideoLinks($root.data());
  6760. const player = new KPlayer(".video-js", {
  6761. previewThumbnails: { enabled: true, src: vlinks.thumbnails }
  6762. });
  6763. player.src = vlinks.src;
  6764. player.on("prev", () => {
  6765. player.message.destroy();
  6766. player.message.info("\u8BE5\u7F51\u7AD9\u4E0D\u652F\u6301\u8DF3\u8F6C\u4E0A\u4E00\u96C6");
  6767. });
  6768. player.on("next", () => {
  6769. player.message.destroy();
  6770. const target = $('a:contains("\u4E0B\u4E00\u96C6")')[0];
  6771. if (target && target.hasAttribute("href") && !target.hasAttribute("disabled"))
  6772. target.click();
  6773. else
  6774. player.message.info("\u6CA1\u6709\u4E0B\u4E00\u96C6\u4E86");
  6775. });
  6776. player.on("timeupdate", () => {
  6777. try {
  6778. const animeName = $(".entry-title").text().replace(/\[\d+\]/, "").trim();
  6779. const episodeName = $(".entry-title").text().match(/\[(\d+)\]/)[1].replace(/^0+/, "");
  6780. const target = $('a:contains("\u5168\u96C6\u9023\u7D50")')[0];
  6781. const url = new URL(target.href);
  6782. const id = url.searchParams.get("cat");
  6783. logHis$1(
  6784. {
  6785. animeName,
  6786. episodeName,
  6787. url: window.location.href,
  6788. id
  6789. },
  6790. player.currentTime
  6791. );
  6792. } catch (error) {
  6793. }
  6794. });
  6795. }
  6796. function runInCategory() {
  6797. $("body").addClass("category");
  6798. $(".vjscontainer").on("click", function() {
  6799. $(this).parent().prev().find("a")[0].click();
  6800. });
  6801. }
  6802.  
  6803. runtime.register({
  6804. domains: ["anime1.me"],
  6805. opts: [
  6806. {
  6807. test: "*",
  6808. run: () => {
  6809. $("html").addClass("anime1");
  6810. historyModule();
  6811. }
  6812. },
  6813. { test: "category", run: runInCategory },
  6814. { test: /^\/\d+/, run: runInSingle }
  6815. ],
  6816. search: {
  6817. name: "Anime1",
  6818. search: (name) => `https://anime1.me/?s=${name}`,
  6819. getSearchName: () => {
  6820. return $(".entry-title").text().replace(/\[\d+\]/, "").trim();
  6821. },
  6822. getEpisode: () => {
  6823. try {
  6824. return $(".entry-title").text().match(/\[(\d+)\]/)[1].replace(/^0+/, "");
  6825. } catch (error) {
  6826. return "";
  6827. }
  6828. },
  6829. getAnimeScope: () => {
  6830. try {
  6831. const target = $('a:contains("\u5168\u96C6\u9023\u7D50")')[0];
  6832. const url = new URL(target.href);
  6833. return url.searchParams.get("cat");
  6834. } catch (error) {
  6835. return "";
  6836. }
  6837. }
  6838. }
  6839. });
  6840.  
  6841. runtime.run();
  6842.  
  6843. })(Hls, Plyr, Danmaku);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址